Ask Your Question
1

How can I unlock my "/home/user" folder?

asked 2012-02-09 19:58:21 -0600

freedom gravatar image

Hi, I've made the matter of my computer, I used to let it to my friend but he named my "user" folder as the root permision, now I can't log in, I can't restore the settings by triyng with the live cd; well, what can I do to restore it to my control and be capable of logging in? Or how can I take out of there my files? I'm using the last fedora 16 with gnome 3.2... it's imposible to open nautilus as root to restore the settings of my folder(normal and from the live cd)

Thanks by the answers, it's a bit urgent

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2012-02-12 09:44:28 -0600

ztank1013 gravatar image

updated 2012-02-12 14:31:06 -0600

If you do not remember the root password this might be a problem but still you may fix it.

Power on your machine and when the GRUB screen shows up hit the esc key to stop the countdown timer. Then, on the default highlighted line, hit the e (edit) key and append to a line that looks like the following the keyword: single

linux   /vmlinuz-2.6.38.6-26.rc1.fc15.x86_64 ro [...] rhgb quiet single

The line is actually much longer than the excerpt I pasted above.

When done appending the single keyword hit the F10 key (or ctrl+X combination) to start the boot process.

You should drop in to a root shell where you can easily change the root password using the command

passwd

Finally you can resume the normal boot process running the exit commanad (or ctrl+d combination).

Before resuming normal boot though you may change permissions to your home folder with the following command:

chown freedom:freedom /home/freedom

I supposed your username was freedom.

If that doesn't work you should probably apply the recursive option to the same command:

chown -R freedom:freedom /home/freedom

It is now time to resume the normal boot (run exit command or ctrl+d combination) and try to login to you box with your username and password.

edit flag offensive delete link more
0

answered 2012-02-10 00:29:03 -0600

FranciscoD_ gravatar image

Use one of the virtual terminals at login time (hit ctrl alt f3), login as root, correct permissions.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-02-09 19:58:21 -0600

Seen: 2,282 times

Last updated: Feb 12 '12