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: 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: How to mount ext3 so the files belong to a specific user?
    ... and want that user to be able to read/write to that partition. ... mount, but it seems crazy to me that you'd not be able to set ownership ... it's not the permissions of the mount point that matter; it's the permission of the root of the partition on that mount point. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Delete Win 2K partition on Debian dual boot to re-use space.
    ... Kent West wrote: ... highlight the 2K partition, and delete it. ... edit /etc/fstab to mount the newly created partition/file system on ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to mount ext3 so the files belong to a specific user?
    ... and want that user to be able to read/write to that partition. ... mount, but it seems crazy to me that you'd not be able to set ownership ... the permissions inside the file system. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)