Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm getting permission denied when I try to access my old 10.04 partition. I'm trying to get into the home folder so that I can back up the data before I do a fresh install of 12.04.

I know the password but not how to get the proper permissions so that I can move stuff via the GUI.

How can I do this?

share|improve this question
1  
Are you booting from the LiveCD for that? –  Bruno Pereira Jan 11 '13 at 17:49
    
Please provide information about permissions at the time the problem happens. For example, open a terminal, try to cd into your old 10.04 directory, do a ls -al there and copy-paste the results here. –  Stéphane Gourichon Jan 11 '13 at 17:50
    
Im working from a 10.04 live cd. –  hortstu Jan 13 '13 at 21:57
    
possible duplicate of Recovering user files with a Live CD –  Eliah Kagan Oct 2 at 19:46

2 Answers 2

First, su to administrator account (If your account is not the admin, aka can't use sudo) su *admins_account_name* Next, type

sudo nautilus

Now try to go in there. You need root. You can now right click and change permissions to allow unprivileged users to read and write to that partition or folder. I don't recommend that, though.

You can also use sudo and cd, ls ...

share|improve this answer
    
If the OP is in a non-admin account, sudoing to an admin account, they will usually not be able to run graphical programs as root with sudo the way you propose. In any case, graphical programs like Nautilus should not be run with straight sudo anyway because it tends to mess up the non-root user's configuration files. See How can I run an application with a GUI as super user from a normal user session? –  Eliah Kagan Jan 12 '13 at 1:33

Browsing and Managing Your Files (Graphically) As Root

Open Nautilus as root:

  1. Press Alt+F2.
  2. Run gksu nautilus (or gksudo nautilus -- on Ubuntu, they should do the same thing).

(Or in Kubuntu--that is, if the live system that you're using to recover the files is Kubuntu--use kdesudo instead of gksu and Dophin instead of Nautilus: kdesudo dolphin For other flavors of Ubuntu, see my answer to a similar question.)

Now be very careful, because with a root Nautilus window, you can do just about anything, including things you don't want to do.

Offloading Your Files

Copy the files to wherever you want them. Then select the files at the target, where you've just copied them, and change the owner to your user account.

(If you're using a live CD, you can save this for when you access them from an installed system, if you like.)

Changing Their Ownership (Recursively)

To change the ownership of a folder and everything in it, right-click on it in a root Nautilus window and click Properties. Go to the Permissions tab.

A nautilus Window, running as root, with a Properties dialog box up on a folder, showing how to change it's owner.

Change Owner to you. Click Apply Permissions to Enclosed Files (or it will only be applied to the folder, not the files and folders contained in it). Click Close.

Usually that's sufficient, and changing the permissions themselves is unnecessary. However, if you need to change the permissions, you can do that the same way (using the folder and file access drop-down menus under Owner, Group, and Others.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.