Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Root access

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Ant



Joined: Fri Sep 11, 2009 7:55 pm
Posts: 44

PostPosted: Sat Mar 10, 2012 6:01 pm    Post subject: Root access Reply with quote

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
View user's profile Send private message Send e-mail
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2354

PostPosted: Sat Mar 10, 2012 6:25 pm    Post subject: Reply with quote

Code:
sudo chown <username> /full/path/to/usbstick

Smile
Back to top
View user's profile Send private message
nelz
Moderator


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8002
Location: Warrington, UK

PostPosted: Sun Mar 11, 2012 8:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Ant



Joined: Fri Sep 11, 2009 7:55 pm
Posts: 44

PostPosted: Sun Mar 11, 2012 3:13 pm    Post subject: Reply with quote

Thankyou both - and Nelz, I like your tag!

Regards Ant
Back to top
View user's profile Send private message Send e-mail
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast