uk.comp.os.linux
[Top] [All Lists]

Re: Mounting and writing to second hard drive...

Subject: Re: Mounting and writing to second hard drive...
From: Nick Leverton <nick@xxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 11:57:21 +0000 (UTC)
Newsgroups: uk.comp.os.linux

In article <W3ekk.415$hR4.241@xxxxxxxxxxxxx>,
Will Kemp  <will@xxxxxxxxxxxxxxxx> wrote:
>Unruh wrote:
> 
>> Note that if the partition is a FAT partition, it knowns nothing about
>> usernames, and you cannot chown anything. 
>
>You *can* change the ownership of the directory it's mounted on though.

It's true FAT and VFAT know nothing about usernames and all files on
the partition will (appear to) be owned by the same user.  By default
they take the username of the user who mounts it.  In most usages this
will be root, but hal-based automounters may set it to be the current
desktop user.

But you can specify which username to use with "mount -o uid=whoever
/dev/whatever /whereever".

Nick
-- 
Serendipity: http://www.leverton.org/blosxom (last update 6th June 2008)
        "The Internet, a sort of ersatz counterfeit of real life"
                -- Janet Street-Porter, BBC2, 19th March 1996

<Prev in Thread] Current Thread [Next in Thread>