SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The first command above should open it to the everybody, unrestricted, if it is mounted read/write and not read-only. The second would make it read/write/execute by the group called "users", and read/execute by the world.
Unless /mnt/hda7 is the mount point and not /mnt, you should consider making a directory like /mnt/shared or /mnt/vfat, or something. The /mnt directory usually has other subdirs like /mnt/cdrom, /mnt/floppy, and /mnt/hd that could be used by other commands.
It should respond with all of the mounted devices. Make sure it is mounted as "rw" for read/write like your other partitions. Also, I think you need to be sure to unmount and remount.
As for inheritance, it is a fat32 partition you stated and fat32 does not have any concept of permissions to begin with. So I would think it would inherit the permissions of the mount point when it is mounted. You can use the "ls -l" command to display the permissions of the files after it is mounted to see what is assigned. Note: That was a lowercase "L" on the command option.
bash-2.05a$ mount
/dev/hda6 on / type ext2 (rw)
/dev/hda7 on /mnt/hda7 type vfat (rw)
/dev/hda8 on /mnt/hda8 type vfat (rw)
/dev/hda9 on /mnt/hda9 type vfat (rw)
/dev/hda10 on /mnt/hda10 type vfat (rw)
/dev/hdb6 on /mnt/hdb6 type vfat (rw)
/dev/hdb8 on /mnt/hdb8 type vfat (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
bash-2.05a$
bash-2.05a$ cd /mnt
bash-2.05a$
bash-2.05a$ ls -l
total 70
drwsrwsrwx 2 root root 1024 Mar 16 08:34 cdrom
drwxr-xr-x 2 root root 1024 Mar 16 08:34 floppy
drwxr-xr-x 6 root root 16384 Jan 1 1970 hda10
drwxr-xr-x 5 root root 4096 Jan 1 1970 hda7
drwxr-xr-x 4 root root 4096 Jan 1 1970 hda8
drwxr-xr-x 4 root root 8192 Jan 1 1970 hda9
drwxr-xr-x 10 root root 32768 Jan 1 1970 hdb6
drwxr-xr-x 5 root root 4096 Jan 1 1970 hdb8
bash-2.05a$
Your mount point is /mnt/hda7 and it is device /dev/hda7. The permissions above would need to be done to /mnt/hda7 and the others that you desire to allow the write permissions.
/mnt/hda7 currently has read/write/exe for root, read/exe only for the group root, and read/exe only for the world. Use "chmod 777 /mnt/hda7" for example and remount the partition. Repeat as desired for the other partitions.
OK. In the listing here the mount point /mnt/hda7 is still at 755. It has not been changed to 777. Please use "chmod 777 /mnt/hda7" as root. Perhaps you executed it as a user and not root. Then umount and mount the partition.
I think I might have figured out what is going on. Since the type of the partition is vfat, the mount command is setting the permissions and owner to the default of the user that is mounting it. In this case, root. The default umask for root is set to 022 in the /etc/profile file. Hence the permissions are set to 755 on the mount point. I would think that by adding the option to the fstab to change the umask might be as simple.
/dev/hda7 /mnt/hda7 vfat defaults,umask=000 1 0
The umask is a bit mask used to set the actual permission bits. In this case it should set them to 777 because the mask is set to all zeroes. After making the change remount the partition.
This is the type of case where I can learn as well. Because I never use vfat partitions on production machines, I have never had to deal with it before. I was only able to test it using a floppy disk, but it worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.