This is a discussion on Permissions on WinDoze partition within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi all! I wanted to give all users read access to my Windoze 98 partition (Yes, I still need ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi all! I wanted to give all users read access to my Windoze 98 partition (Yes, I still need to have that damn W... installed (*sigh*) ), but I ran into very strange problem. The permissions on the /mnt/windows are as default rwxr--r--, so only root could change to that directory & read its contents. I tried to allow all users the same, but see what happened: 8<--- <root> /mnt# ls -l | grep windows drwxr--r-- 18 root root 4096 Jan 1 1970 windows <root> /mnt# chmod -v a+x windows mode of `windows' changed to 0755 (rwxr-xr-x) <root> /mnt# ls -l | grep windows drwxr--r-- 18 root root 4096 Jan 1 1970 windows <root> /mnt# 8<--- What mechanism keeps me from changing the permissions of /mnt/windows (as root!), or changes it back when I turn my back? And more importantly, HOW CAN I DISABLE IT...! Very strange By the way, I'm using Slackware 9.1 JR -- | me@home ~$whoami ^ ^ | 'Mörköjä ja poliiseja on olemassa' | | Jouni 'Mad Max' Rinne ('x') | Tove Jansson, 'Vaarallinen juhannus' | | me@home ~$man woman C " " | --------[ph34r t3h p3Ngu1n]--------- | | Segmentation fault (core dumped) | madmaxjr at kolumbus dot fi | |
| |||
| On Sat, 06 Mar 2004 13:54:04 +0200, MadMaxJR wrote: > I wanted to give all users read access to my Windoze 98 partition Try mounting it with 'user' and 'umask=077', eg. in fstab: /dev/hdb1 /win vfat rw,user,umask=077,conv=a 0 0 -- .. |
| |||
| > What mechanism keeps me from changing the permissions of /mnt/windows (as > root!), or changes it back when I turn my back? And more importantly, HOW > CAN I DISABLE IT...! Very strange The fat filesystem has no concept of permissions. You need to set a umask for the whole filesystem when mounting or in fstab. I have in my fstab somehting like nouid,nogid,noexec,rw,users,umask=000. |
| |||
| On Sat, 06 Mar 2004 12:52:57 +0000, MikeyD wrote: >> What mechanism keeps me from changing the permissions of /mnt/windows (as >> root!), or changes it back when I turn my back? And more importantly, HOW >> CAN I DISABLE IT...! Very strange > > The fat filesystem has no concept of permissions. You need to set a umask > for the whole filesystem when mounting or in fstab. I have in my fstab > somehting like nouid,nogid,noexec,rw,users,umask=000. Thanks for the help! I replaced the 'defaults' in fstab with 'rw,umask=022', that did the trick... I KNEW that fat filesystem haven't got any permissions, I just thought that the directory /mnt/windows still belonged to the *nix filesystem, and all after that to the *doze. Obviously I was wrong... JR -- | me@home ~$whoami ^ ^ | 'Mörköjä ja poliiseja on olemassa' | | Jouni 'Mad Max' Rinne ('x') | Tove Jansson, 'Vaarallinen juhannus' | | me@home ~$man woman C " " | --------[ph34r t3h p3Ngu1n]--------- | | Segmentation fault (core dumped) | madmaxjr at kolumbus dot fi | |
| |||
| On Sat, 06 Mar 2004 13:54:04 +0200, MadMaxJR wrote: > Hi all! > > What mechanism keeps me from changing the permissions of /mnt/windows (as > root!), or changes it back when I turn my back? And more importantly, HOW > CAN I DISABLE IT...! Very strange I'll give you the same advice as I got when I asked this question: man mount (look at the fat filesystem options). |
| ||||
| > What mechanism keeps me from changing the permissions of /mnt/windows (as > root!), or changes it back when I turn my back? And more importantly, HOW > CAN I DISABLE IT...! Very strange Try: mount -t vfat -o uid=username /dev/hda1 /mnt/windows |