linux fstab

dweezill

Member
May 26, 2000
153
0
0
hello I want to mount one of my windows partition in linux
but I want that only one person (root or my account) has the write permision. Everybody can read the files but only me can modify then or write to that partititon.

I have tried many thing and I am capable to set the permission to read and write (rw) or read only (ro) for every user even root.....

I want root to have write acces and other ones only read acces .....

please show me what line I have to write

I tried
/dev/hda5 /mnt/fuji vfat nouser,exec,nodev, setuid=501,rw,umask=0 0 0


uid 501 is my account

and is ther a way to apply changes of fstab without rebooting?




 

IlLogiK

Golden Member
Dec 20, 1999
1,045
0
76
well I'm not a linux guru, but wouldn't you just chmod/chown/chgrp the directory it mounts as...?

 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
To do it along those lines you would:

chown -R <yourself> /<mountpoint>
chmod -R 744 /<mountpoint>

Even more secure is to make another group just for those users, add those users to that group (just edit the /etc/groups file and add those folks, though you can do it with other ways as well), then chgrp -R <thatgroup> /<mountpoint>, then chmod 740 /<mountpoint>.

I think that's right. I'm tired and not in the &quot;admin mode&quot; right now though. :)

[edit]Crap! vfat. I don't think that'll work. Hmmmm...[/edit]
 

SUOrangeman

Diamond Member
Oct 12, 1999
8,361
0
0
I think the /etc/fstab parameters are only read at boot time. Anything else would have to be passed as parameters when remounting (after umounting).

-SUO
 

dweezill

Member
May 26, 2000
153
0
0
I still have not fount it but I know that it can only be done at mount, once mounted it is impossible to change the permission of a vfat partition.
 

dweezill

Member
May 26, 2000
153
0
0
there is the line that gives write permission to root on a vfat file
system, and read only to the other users

dev/hda5 /mnt/files vfat nouser,exec,noudev,nosuid,rw,umask=022,uid=0 0 0