[ubuntu-uk] Changing File/Folder permissions

Neil Greenwood neil.greenwood.lug at gmail.com
Tue Apr 28 11:08:27 BST 2009

2009/4/28 mac <ammonius.grammaticus at gmx.co.uk>:
> Neil Greenwood wrote:
>> I have a similar issue with my ext3 formatted USB hard disk.
>> When hotplugged, it's owned by root and I cannot create files or
>> directories as my normal user. What do I need to change so that all
>> users can create files/directories in the root when it's plugged in
>> and automounted?
> Here's what I do:
> (Can't remember if I change the ownership with chown first.  SIAS!)
> Mount the drive.  Then
> chmod -R +w /media/<drivelabel>
> (And if you need to give it a label:
> To relabel do
> sudo e2label <device> <label>
> e.g.
> sudo e2label /dev/sdg1 MyUSB
> mac

Thanks mac.

I was trying to avoid having to run a command every time I plug the
drive in though.


More information about the ubuntu-uk mailing list