6

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 1

8

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.

4
  • I'm glad to hear! :-)
    – cauon
    Oct 5, 2012 at 9:10
  • 2
    If 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.
    – devav2
    Oct 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. So chmod should succeed even when not run as root. Oct 6, 2012 at 5:14
  • @EliahKagan I wasn't sure about this and had no machine to test :-) It was just precaution.
    – cauon
    Oct 6, 2012 at 10:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .