在我的Fedora中,我有一些附加的HDD,其分区已安装为/ media / dilnix / data,其中包含了我大部分的大文件,这些大文件归类于“音乐”,“下载”,“视频”等文件夹中。
这些文件夹是我主文件夹中符号链接的目标。喜欢
/home/dilnix/@Video to /media/dilnix/data/Video
/home/dilnix/@Downloads to /media/dilnix/data/Downloads
etc.
我的fstab的最后2个条目如下:
UUID=355ba039-6126-4c36-ba6a-8ff4f2ee79e8 /media/dilnix/data ext4 defaults,noatime,user 1 2
UUID=24dd893c-07dd-4f52-85c5-066773f74c0f /home ext4 defaults,noatime 1 2
问题是,当我尝试从“下载”文件夹(以及更深层的)运行某些应用程序或脚本时,出现如下错误:
bash: ./mktool: permission denied
我使用过的示例脚本的文件权限:
[dilnix@localhost mktool-master]$ ll -Z
загалом 36
drwx------. 3 dilnix dilnix unconfined_u:object_r:user_home_t:s0 4096 чер 8 2015 .
drwxrwxr-x. 3 dilnix dilnix unconfined_u:object_r:user_home_t:s0 4096 січ 16 11:38 ..
-rwxr-xr-x. 1 dilnix dilnix unconfined_u:object_r:user_home_t:s0 18448 чер 8 2015 mktool
-rw-rw-r--. 1 dilnix dilnix unconfined_u:object_r:user_home_t:s0 612 чер 8 2015 README.md
drwx------. 2 dilnix dilnix unconfined_u:object_r:user_home_t:s0 4096 чер 8 2015 tools
[dilnix@localhost mktool-master]$ getfacl mktool
# file: mktool
# owner: dilnix
# group: dilnix
user::rwx
group::r-x
other::r-x
我在配置中错过了让我的其他文件夹作为家的一部分工作的事情?
我试图暂时禁用SELinux,但这不是由于错误继续出现的原因。
从开始man mount
,user
mount选项意味着`noexec:
user Allow an ordinary user to mount the filesystem. The name of
the mounting user is written to the mtab file (or to the
private libmount file in /run/mount on systems without a
regular mtab) so that this same user can unmount the
filesystem again. This option implies the options noexec,
nosuid, and nodev (unless overridden by subsequent options, as
in the option line user,exec,dev,suid).
因此,您可以删除该user
选项,或将安装选项更改为defaults,noatime,user,exec,suid
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句