Re: How to mount ext3 so the files belong to a specific user?



Martin Marcher wrote:
2007/11/14, Kent West <westk@xxxxxxx>:
I have a partition that I'm mounting in a specific user's home
directory, and want that user to be able to read/write to that partition.


However, I've been unable to find (google, man, etc) any way to
accomplish this; the few hints I have found indicate it works fine with
a VFAT partition, or that you can manually chown the perms after the
mount, but it seems crazy to me that you'd not be able to set ownership
at mount time.

AFAIK, you can't do that with ext2/3/xfs/reiser/... because they store
the permissions inside the file system. that means if you mount the
filesystem all files belong to specific uid/gid that may or may not
match to your system (e.g I'm pretty sure if I chown -R 65434:65434
/mnt/harddisk and give that to you you will just see the number and
not any user name)


Tying this in with Jochen's answer...

So, 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.

Okay, now that makes sense. (Forget my extreme rambling about this situation being nuts.)

But wow. Not intuitive.

Thanks! That gets me back on the road to progress!

--
Kent


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Access to FAT32 - Suse
    ... I made a FAT32 partition for thunderbird mailbox so i can access the ... When i log as root i have permissions for root - view and modify ... fat32 has no idea of file permissions, therefore the fat32 fs driver for Linux implements them on a /partition/ wide basis and they're set at mount time: ...
    (comp.os.linux)
  • Re: Installation of hard drive
    ... Then try to mount the partition using the command line: ... Did you try to mount it on a different directory...like floppy? ... Just to check if is a permissions issue. ...
    (Debian-User)
  • Re: gid option on ext3 in fstab
    ... But then i remembered the gid option in fstab. ... I use the same option on my laptop (mounting vfat partition), ... The gid and uid mount options only work with file systems such ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Problem with random disks mount sequence
    ... I'll get random mount sequences. ... At the beginning the USB ... nautilus remember that 'storage3' was 1st partition, ... SCSI drives are listed by order of discovery. ...
    (Fedora)
  • Re: Write access to a VFAT partition
    ... Only root has write access. ... > VFAT partition when it is mounted under Linux. ... Changing the permissions of the mount point won't help. ...
    (comp.os.linux.misc)