LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-08-2004, 12:34 PM   #1
kAmnesiac
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
reading vfat problems


hi, 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.
 
Old 03-08-2004, 12:50 PM   #2
Q-Fireball
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Well I am also a . 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!!
 
Old 03-08-2004, 04:52 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.
 
Old 03-08-2004, 05:56 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vfat Mounting Problems Altec_ Linux - Hardware 0 02-07-2005 01:54 PM
vfat (possible kernel) problems microsoft/linux Debian 17 11-15-2004 08:08 PM
reading/writing mounted vfat as user? freeindy Linux - General 4 10-23-2003 09:03 AM
Vfat problems joel112 Slackware 7 08-25-2003 11:32 AM
Problems with X and vfat on debian PeterN Linux - Newbie 2 01-04-2003 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration