problem accessing fat drive as a user
Hi folks
Seems I can't access my FAT32 Windows' partitions in Linux as a user (get an "Access denied" error), yet I can read and write as root. I've tried changing the permissions to the directories they're mounted at, but when remounting the partitions the permissions change back to their original permissions while mounted and yet the permissions for the directories will revert back to the changes I've made when unmounted. I've also tried to change the mount options in fstab with 'nosuid' and 'users', without success. Here are the original entries in fstab: Code:
/dev/hda1 /Windows/0-1_WIN vfat defaults 1 0 BTW: I'm using Slack 9.1 |
Change the 'defaults' field to form 'defaults,user,noauto' and mount the drive as an user (unmount it as root first).
Something like Code:
/dev/hda1 /Windows/0-1_WIN vfat defaults,user,noauto 1 0 |
BTW a very commonly asked question, change fstab entry to:
/dev/hda1 /windows/0-1_WIN vfat users, umask=000 0 0 See man pages for mount and fstab for additional help with options. |
For vfat mounts there is something you may want to try. If you want permissions on a drive to go to a particular group or user, add uid=xxx or gid=xxx to the options where the xxx represent the group or user ID numbers. For ext2/3 partitions, just use the chown command.
|
Thanx for the quick replies, folks :)
I followed michaelk's advice using the umask option, and was playing around with it to see if I could set some permissions on those partitions since umask=000 removes all permissions. But I see that jschiwal has answered that for me...... :D I also had to reboot the computer for the changes to take effect since the 'mount -a' command didn't change the permissions. Thanx for all the help! |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:18 PM. |