我在 /etc/fstab 中做了以下更改,执行此操作后,我在任何分区中创建的任何文件都具有可执行权限。
请帮帮我。
这是我的 /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda10 during installation
UUID=89e6ce75-1460-4c7e-ab26-ada11484cf4e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda11 during installation
UUID=fb568186-5d39-4a60-9412-c254a0489490 none swap sw 0 0
UUID=905848155847F90C /media/EDUCATIONAL ntfs-3g defaults,auto,uid=1000,gid=100,dmask=027,fmask=137,umask=007 0 0
UUID=CEB008F2B008E337 /media/ENTERTAINMENT ntfs-3g defaults,auto,uid=1000,gid=100,dmask=027,fmask=137,umask=007 0 0
UUID=7216C6C016C68517 /media/PROJECTS ntfs-3g defaults,auto,uid=1000,gid=100,dmask=027,fmask=137,umask=007 0 0
当我列出我的文件时,我发现所有文件都具有可执行权限。
-rwxrwx--- 1 manu users 1213 Apr 20 20:28 message_receive.c
-rwxrwx--- 1 manu users 1111 Apr 19 16:02 message_send.c
-rwxrwx--- 1 manu users 1110 Apr 19 16:06 message_sender1.c
-rwxrwx--- 1 manu users 1110 Apr 19 16:06 message_sender2.c
-rwxrwx--- 1 manu users 1111 Apr 19 16:07 message_sender3.c
-rwxrwx--- 1 manu users 7442 Apr 20 20:41 receiver
我想要这样的权限
-rw------- 1 manu manu 1213 Apr 20 20:28 message_receive.c
-rw------- 1 manu manu 1111 Apr 19 16:02 message_send.c
-rw------- 1 manu manu 1110 Apr 19 16:06 message_sender1.c
-rw------- 1 manu manu 1110 Apr 19 16:06 message_sender2.c
-rw------- 1 manu manu 1111 Apr 19 16:07 message_sender3.c
-rwx------ 1 manu manu 7442 Apr 20 20:41 receiver
我想要上述权限,我应该在 fstab 中做哪些更改?
所有上述文件均在 /media/PROJECTS 中创建。在这里,我创建的所有文件都具有可执行权限,我不希望发生这种情况,只有可执行文件才应该具有可执行权限。