| View previous topic :: View next topic |
| Author |
Message |
spbecker Retired Dev


Joined: 10 Dec 2002 Posts: 73
|
Posted: Tue Dec 10, 2002 10:29 pm Post subject: mount problems |
|
|
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 |
|
 |
SuperTomate Guru

Joined: 02 Jun 2002 Posts: 392 Location: France
|
Posted: Tue Dec 10, 2002 10:52 pm Post subject: |
|
|
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 |
|
 |
spbecker Retired Dev


Joined: 10 Dec 2002 Posts: 73
|
Posted: Tue Dec 10, 2002 11:52 pm Post subject: too much access... |
|
|
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 |
|
 |
ebrostig Bodhisattva


Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Tue Dec 10, 2002 11:55 pm Post subject: |
|
|
What is your UMASK set to?
To find out, type umask at the command prompt.
Erik |
|
| Back to top |
|
 |
spbecker Retired Dev


Joined: 10 Dec 2002 Posts: 73
|
Posted: Tue Dec 10, 2002 11:56 pm Post subject: umask |
|
|
| My umask is 0022 |
|
| Back to top |
|
 |
spbecker Retired Dev


Joined: 10 Dec 2002 Posts: 73
|
Posted: Tue Dec 10, 2002 11:58 pm Post subject: ok, fixed I think |
|
|
| 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 |
|
 |
pilla Administrator


Joined: 07 Aug 2002 Posts: 7184 Location: Pelotas, BR
|
Posted: Wed Dec 11, 2002 12:04 am Post subject: |
|
|
Have you tried the mask 022?
[EDIT] looks like it was answered before I finish postin [/EDIT] |
|
| Back to top |
|
 |
|