Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Tue Dec 10, 2002 10:29 pm    Post subject: mount problems Reply with quote

On my most recent emerge rsync, emerge world, etc, I believe util-linux was updated. Ever since then, I can not access my windows drive with any user but root. Before mounting, the permissions on the mount point are like so:
drwxr-xr-x 2 root root 4096 Nov 2 22:18 d
After mounting:
drwxr--r-- 8 root root 16384 Dec 31 1969 d

This is very frustrating because I store all of my multimedia files on my windows drive because it is larger and because that way I can access the files in windows or linux. I have read the manpage for mount, but it doesn't seem to have helped at all. I even tried emerging the previous version of util-linux and the same thing happens. Does anyone have any ideas? Thanks.
Back to top
View user's profile Send private message
SuperTomate
Guru
Guru


Joined: 02 Jun 2002
Posts: 392
Location: France

PostPosted: Tue Dec 10, 2002 10:52 pm    Post subject: Reply with quote

I don't know what happened but I already had the same problem.
To mount your vfat partition so that any user has write-access, you can easily specify an umask as a parameter of mount :
Code:
mount -t vfat -o umask=0 /dev/hda1 /mnt/windows

Or in /etc/fstab :
Code:
/dev/hda1   /mnt/windows   vfat   defaults,umask=0   0  0
Back to top
View user's profile Send private message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Tue Dec 10, 2002 11:52 pm    Post subject: too much access... Reply with quote

Adding umask=0 to fstab works, however, that gives *any* user full read-write access to the disk. In my opinion that is very insecure. The way it worked before, regular users had read-only access, and root had read-write access. Hmmm :(
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Tue Dec 10, 2002 11:55 pm    Post subject: Reply with quote

What is your UMASK set to?

To find out, type umask at the command prompt.

Erik
Back to top
View user's profile Send private message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Tue Dec 10, 2002 11:56 pm    Post subject: umask Reply with quote

My umask is 0022
Back to top
View user's profile Send private message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Tue Dec 10, 2002 11:58 pm    Post subject: ok, fixed I think Reply with quote

I added a umask=022 to fstab, and now it mounts the drives properly again such that regular users have read-only. I wonder what made it break?
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7184
Location: Pelotas, BR

PostPosted: Wed Dec 11, 2002 12:04 am    Post subject: Reply with quote

Have you tried the mask 022?

[EDIT] looks like it was answered before I finish postin :wink: [/EDIT]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum