[ubuntu-uk] Changing File/Folder permissions

Matthew Daubney matt at daubers.co.uk
Mon Apr 27 13:41:44 BST 2009

On Mon, 2009-04-27 at 12:57 +0100, Stephen Garton wrote:
> Afternoon All,
> I have a spare drive in my machine, formatted as fat32. All of the
> folders in this drive (automounts to /media/storage) as listed as
> being owned by root. When I try to change this (I've tried sudo chown
> -R and sudo nautilus) I get permission denied errors.
> Any idea why this would be, and/or how I can change the permissions to
> my user?
> Thanks,
> Steve Garton
> sheepeatingtaz.co.uk

You can use the uid and gid options with mount to make it mount fat32
drives as if you own all the files. e.g.

sudo mount /dev/sdX /media/MOUNTPOINT -o uid=1000,gid=1000


-Matt Daubney
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20090427/df2ea646/attachment-0001.pgp 

More information about the ubuntu-uk mailing list