[ubuntu-uk] Changing File/Folder permissions

mac ammonius.grammaticus at gmx.co.uk
Tue Apr 28 08:55:40 BST 2009


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


HTH

mac



More information about the ubuntu-uk mailing list