External HDD auto-mounted as root

suvayu ali fatkasuvayu+linux at gmail.com
Sat Mar 26 05:12:05 UTC 2011


On Fri, Mar 25, 2011 at 9:59 PM, Robert Nichols
<rnicholsNOSPAM at comcast.net> wrote:
> Are you talking about the ownership of the root directory on the mounted
> file system?  That's stored in the directory's inode, just as with any
> other directory.  With the file system mounted, use 'chown' (as root) to
> change that ownership to anything you want.  Note that it's only the
> numeric UID and GID that are stored.  If you're moving that drive among
> systems with different UID/GID->name mappings, you'll see different user
> names as the owner.

I was talking about the top level directory on the partitions of the
external drive. I couldn't write to it as the regular user. Following
Ed's trick to chown the first time retains it for subsequent mounts on
different systems.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list