LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Users can't access Fat drives. (https://www.linuxquestions.org/questions/slackware-14/users-cant-access-fat-drives-81103/)

puntme 08-11-2003 06:53 PM

Users can't access Fat drives.
 
None of the users can access the Fat drives I have mounted.

Here is my fstab:

Code:

/dev/hda1        swap            swap        defaults        0  0
/dev/hda2        /                ext3        defaults        1  1
/dev/hda3        /usr            ext3        defaults        1  2
/dev/hda4        /home            ext3        defaults        1  2
/dev/hdb1        /fat1            vfat        defaults        1  0
/dev/hdb2        /fat2            vfat        noauto,user,ro  0  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,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

I think I messed it up when I was trying to fix it, also, since it wont display the files in Root anymore. :(

Thanks.

Skyline 08-11-2003 07:42 PM

/dev/hdb1 /fat1 vfat defaults 1 0
/dev/hdb2 /fat2 vfat noauto,user,ro 0 0

These two lines (above) in your /etc/fstab are dodgy.

Personally I'd create mount points in your /mnt directory

Open a Command line - su to root user

mkdir /mnt/fat1
mkdir /mnt/fat2

Then edit both lines in /etc/fstab to read as follows:

/dev/hdb1 /mnt/fat1 vfat auto,uid=501,umask=000 0 0
/dev/hdb2 /mnt/fat2 vfat auto,uid=501,umask=000 0 0

(just substitute in your user id number in place of my example one) - To get your uid (user id number) -

open a command line

type

id username (substitute in your username in place of username)

for example

id michael
id Sarah

look for the

uid=xxx

thats your uid number

puntme 08-11-2003 08:20 PM

Thanks, it worked!

Skyline 08-12-2003 01:24 PM

Nice


All times are GMT -5. The time now is 02:19 AM.