LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem accessing fat drive as a user (https://www.linuxquestions.org/questions/linux-newbie-8/problem-accessing-fat-drive-as-a-user-124355/)

thegeekster 12-09-2003 05:28 PM

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
/dev/hdb5        /Windows/1-2_DATA vfat      defaults        1  0
/dev/hdb6        /Windows/1-3_STORE vfat      defaults        1  0

Any help much appreciated....... :)



BTW: I'm using Slack 9.1

ToniT 12-09-2003 05:33 PM

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
.

michaelk 12-09-2003 05:46 PM

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.

jschiwal 12-09-2003 06:01 PM

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.

thegeekster 12-09-2003 07:52 PM

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!

aaa 12-09-2003 08:59 PM

Quote:

I also had to reboot the computer for the changes to take effect since the 'mount -a' command didn't change the permissions.
Use 'mount -a -o remount'. Or just unmount the partition & mount again.

thegeekster 12-09-2003 10:14 PM

Quote:

Use 'mount -a -o remount'......
Thanx. I'll have to remember that one ;)


All times are GMT -5. The time now is 06:18 PM.