I accidentally issued the following command sudo chmod 000 /home/username/
. And now I'm unable to log in. Also when I'm trying from the bash shell, my home folder is appearing as "Access-your-private-data.desktop". Any ideas about how to solve the problem?
1 Answer
Try to log in via command line.
Upon login screen, hit ctrl+alt+F1 to switch to console tty and try to log in there with your normal account.
If this is successful you would eventually be able to apply sudo chmod 755 /home/username/
Let us know if this works.
-
-
2If you feel that @cauon answer helped you to fix the issue. Please mark the answer as accepted answer by clicking on the grey tick mark. Thanks.– devav2Oct 5, 2012 at 11:20
-
1@cauon Why
sudo
? In this situation, the user still owns his/her home folder, it's just the permissions that have changed. Sochmod
should succeed even when not run asroot
. Oct 6, 2012 at 5:14 -
@EliahKagan I wasn't sure about this and had no machine to test :-) It was just precaution.– cauonOct 6, 2012 at 10:15