LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   reading vfat problems (https://www.linuxquestions.org/questions/linux-hardware-18/reading-vfat-problems-155008/)

kAmnesiac 03-08-2004 11:34 AM

reading vfat problems
 
hi, :newbie: here, i'm using slackware 9.1 and i'm having a hard time now accesing my vfat shared partition and my usb hard drive, it works perfectly fine when i work as root, but when i'm using any other user i'm not allowed to view its content... here's my fstab file:

Code:

/dev/hda9        swap            swap        defaults        0  0
/dev/hda8        /                reiserfs    defaults        1  1
/dev/hda10      /home            reiserfs    defaults        1  2
/dev/hda11      /shared          vfat        noauto,user      1  0
/dev/sda1        /removable      ntfs        noauto,user,ro  0  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,user,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0

so, i'm guessing this has something to do with the user privileges... my user is member of: users, console, disk, wheel

any response would be highly appreciated, thanks.

Q-Fireball 03-08-2004 11:50 AM

Well I am also a :newbie:. But as I know “user” only means that a user can mount the device not that he can access it. I think you have to use the command gid = 200 or umask=000, but read the manual or use google!!

jschiwal 03-08-2004 03:52 PM

I prefer using a name rather than a number for the gid= option. If you make a new group, assign that group in a gid= option, make the users you want to allow access to that group members and use a umask like 117, then it should work like you want it to. The umask above doesn't allow programs to run from this drive, which might be a good idea for a shared drive. You might also want to use the nodev option.

Electro 03-08-2004 04:56 PM

Change:
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/hda11 /shared vfat noauto,user 1 0

To:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,unhide,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users,sync,umask=000 0 0
/dev/hda11 /shared vfat noauto,user,umask=000 1 0

Also delete or hide usb entry because they always change when you connect and disconnect them. If you are using hotplug, write a script called usb-storage and put it in ../hotplug/usb. When hotplug detects the device as a usb storage. It will run the script and mount your device. Go to http://users.actrix.co.nz/michael/usbmount.html to find out.

Do not forget to include the sync command for USB devices. You probably want to include it for vfat partitions too. Like what jschiwal, said you can add nodev. Also you may want to add noexec.

Why are you using NTFS for your removable drive. You should be using FAT or FAT32 if you want to use it with different operating systems.


All times are GMT -5. The time now is 01:57 PM.