| View previous topic :: View next topic |
| Author |
Message |
Ant
Joined: Fri Sep 11, 2009 7:55 pm Posts: 44
|
Posted: Sat Mar 10, 2012 6:01 pm Post subject: Root access |
|
|
Hello all,
I have a Lenovo netbook with Ubuntu 10.something I think - severe family distractions these last months - and a USB hard drive ready to do a back-up. As an aside I've been very pleased with the netbook.
The trouble is that the drive has root permission only so I cannot make a new folder nor copy netbook files to it. I've obviously managed a long time ago but I cannot for the life of me remember how I did it!
It would actually be handier if I could change ownership to me rather than root but of course I can't do that either.
I'm sure I've seen a way to do sudo for the duration, as it were, but my memory isn't what it was...
Some advice would be much appreciated -
Regards Ant |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2354
|
Posted: Sat Mar 10, 2012 6:25 pm Post subject: |
|
|
| Code: | | sudo chown <username> /full/path/to/usbstick |
 |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8002 Location: Warrington, UK
|
Posted: Sun Mar 11, 2012 8:03 am Post subject: |
|
|
| Code: | | sudo chown -R username: /path/to/drive |
The -R changes all files and directories recursively, otherwise you could write to the root but not any folders. The : changes the username too. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Ant
Joined: Fri Sep 11, 2009 7:55 pm Posts: 44
|
Posted: Sun Mar 11, 2012 3:13 pm Post subject: |
|
|
Thankyou both - and Nelz, I like your tag!
Regards Ant |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|