On Tue, Oct 17, 2006 at 11:28:14PM +0200, Lars Staun Knudsen wrote: > Hi > > I want all files on a partition, used as a nfs-share, to have > "utysket" as group. Earlier I had a script to run every second hour > to set the right group. But then i remembered the gid option in fstab. > /dev/hdc1 /Lager/01 ext3 gid=utysket,noexec,defaults > 0 2 > > But it doesn't work: > main:~# mount /Lager/01/ > mount: wrong fs type, bad option, bad superblock on /dev/hdc1, > missing codepage or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > > EXT3-fs: Unrecognized mount option "gid=1002" or missing value > > I use the same option on my laptop (mounting vfat partition), and it > works. So i don't what to do different. > The gid and uid mount options only work with file systems such as vfat, which do not have a uid and gid for each file. Instead, you could use "chmod g+s".
> BTW how much real difference do extra mount option, such as noexec > and etc., do to enhance security? > They do what they say, not allowing exec, suid, etc. on a mounted file system. Imagine if someone could mount a floppy or USB drive containing an suid root shell. -- Do you guys know we just passed thru a BLACK HOLE in space? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]