[ubuntu-uk] Changing File/Folder permissions

Daniel Drummond dmdrummondx at gmail.com
Mon Apr 27 20:29:24 BST 2009


Matthew Daubney wrote:
> On Mon, 2009-04-27 at 14:28 +0100, mac wrote:
>> Matthew Daubney wrote:
>>> 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
>>
>> That's useful to know.  I guess, though, you couldn't preserve other 
>> ownerships / permissions if you tried to rsync to a FAT32 drive?
>>
>> mac
> 
> Unfortunately not, as those things are stored by the file system. You
> can set the default permissions for things though, but I can't remember
> the option for that off the top of my head.
> 
> -Matt Daubney
> 
I usually use a umask=0022 option in the particular entry in /etc/fstab 
- that works for me.

Dan



More information about the ubuntu-uk mailing list