Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-31-2003, 09:17 AM
|
#1
|
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19
Rep:
|
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 =-
|
|
|
03-31-2003, 10:24 AM
|
#2
|
Member
Registered: Jul 2002
Posts: 141
Rep:
|
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
|
|
|
04-01-2003, 12:12 AM
|
#3
|
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19
Original Poster
Rep:
|
Can you please explain what those umask numbers mean? Thank you.
-= Obi-Wan =-
|
|
|
04-01-2003, 12:46 AM
|
#4
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
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
|
|
|
04-01-2003, 04:30 AM
|
#5
|
LQ Newbie
Registered: Nov 2002
Distribution: Debian
Posts: 19
Original Poster
Rep:
|
Thank you very much Excalibur.
-= Obi-Wan =-
|
|
|
07-12-2003, 11:35 AM
|
#6
|
LQ Newbie
Registered: Jun 2003
Distribution: Slackware
Posts: 22
Rep:
|
wah..
what a beautiful post... i could kiss it
thanks exalibur for all the info , u saved me hairs.. :>
|
|
|
07-13-2003, 12:15 AM
|
#7
|
Member
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|