Re: gid option on ext3 in fstab



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 debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: A-posteriori use of another HDD for the /home/username
    ... If I mount the new HDD on ... The only stupid questions are the ones that people don't ask..... ... partition, it "hides" the old data. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Disk Full issue: SOLVED
    ... was written to the partition since a mount point was down... ... > because the disk is full. ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Help with upgrading
    ... no other partition which I've made like /usr, /home, /var, etc. So I ... have no way of editing my /etc/mount since there isn't such file nor is ... mount -o remount,rw / ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: portable driver
    ... That's my small USB flash drive with just one partition on it ... that's labeled "PRUEBAS" and then I can mount it by issuing: ... Yeah, I also gave them name during initial formatting, which can be ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Writing to Windows partition - update
    ... This will let you mount the partition by the user with the above uid and ... gid only. ...
    (linux.redhat.install)