Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-31-2003, 09:17 AM   #1
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19

Rep: Reputation: 0
Slack 9: mounted FAT32 partitions cannot be accessed by normal user

Only root can access the directories. How I allow normal users to read and open directories in mounted FAT32 partitions?

-= Obi-Wan =-
Old 03-31-2003, 10:24 AM   #2
Registered: Jul 2002
Posts: 141

Rep: Reputation: 15
There have been changes on the umask settings in 9.0.

This will enable both read & write to 'users'

exapmle of entry in fstab:

/dev/hda7 /mnt/hda7 vfat defaults,umask=000 1 0

or umask=022
Old 04-01-2003, 12:12 AM   #3
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: 0
Can you please explain what those umask numbers mean? Thank you.

-= Obi-Wan =-
Old 04-01-2003, 12:46 AM   #4
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
When a partition type of vfat is mounted, the system will mask the full permision set 777 with the umask setting, thus producing the the permisions for the mount point. So the umask is an inverse of the desired settings. For example; full permisions are rwxrwxrwx or 777. If you desire, rwxr--r-- or 744, then a umask of 033 would be correct. For rwxr-xr-x or 755, a umask of 022 would be correct. Notice the numbers will add up to 7 in each column.

Now for the problem or change in Slack 9.0. The system default umask setting is 022 and that is set in /etc/profile. This setting has not changed. However, the mount command has been modified to include some new options, fmask and dmask, and in the process the system umask setting is not being used. The mount command is defaulting to a umask setting of 033, producing 744 permisions (rwxr--r--). Even if the default umask is set to 000, it continues to use a 033 setting. However, if you force the command by providing the option for the umask setting then it will use it properly.

To manually mount with rwxr-xr-x;
mount -t vfat -o umask=022 /dev/hd?? /mnt/point

To mount from /etc/fstab with rwxrwxrwx;
/dev/hd?? /mnt/point vfat defaults,umask=000 0 0
Old 04-01-2003, 04:30 AM   #5
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you very much Excalibur.

-= Obi-Wan =-
Old 07-12-2003, 11:35 AM   #6
LQ Newbie
Registered: Jun 2003
Distribution: Slackware
Posts: 22

Rep: Reputation: 15

what a beautiful post... i could kiss it

thanks exalibur for all the info , u saved me hairs.. :>
Old 07-13-2003, 12:15 AM   #7
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
Hey ... just add some gadgets

/dev/hda1 /mnt/point vfat umask=000,quiet,shortname=mixed 0 0

quiet => it won't complaint if you try to chmod a file there, or
use midnight commander to copy file to it.
shortname=mixed => it can consistently store upper/lower case filename.


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
User can't write mounted fat32 drive? ExoZagNoid Ubuntu 4 06-09-2005 09:05 PM
mounting windows partitions in writable mode for a normal user peevee Linux - Software 4 11-07-2004 05:08 PM
Accessing mounted fat32 partitions as user linuxgamer09483 Linux - Newbie 3 02-13-2004 06:43 PM
Mounted partitions in slack 9.0 ?! bynaar Slackware 4 03-30-2003 08:38 PM
Common user access to mounted partitions? JoooN Slackware 2 02-16-2003 07:17 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:35 AM.

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