LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-31-2003, 08:17 AM   #1
Obi-Wan_Kenobi
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, 09:24 AM   #2
bynaar
Member
 
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 03-31-2003, 11:12 PM   #3
Obi-Wan_Kenobi
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 03-31-2003, 11:46 PM   #4
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
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, 03:30 AM   #5
Obi-Wan_Kenobi
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, 10:35 AM   #6
Cubix
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
wah..

what a beautiful post... i could kiss it



thanks exalibur for all the info , u saved me hairs.. :>
 
Old 07-12-2003, 11:15 PM   #7
Kocil
Member
 
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.
 
  


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


All times are GMT -5. The time now is 11:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration