1
I guess I need some help from an advanced Unix user...
On a Ubuntu System I did something stupid. I typed sudo chmod 774 .*
or the like, in a subfolder of my home folder and then I suddenly could not change the directory to my home directory anymore.
I'm not quite sure about the exact numbers in the command, but I am sure about the .*
.
Now, after a reboot, I can't even log into the GUI anymore and when I Ctrl + Alt + F1
into a console and log in, I get the message No directory, logging in with HOME=/
.
When I then try to cd
into /home/myusername
, I get the error: -bash: cd: /home/myusername: Permission denied
. Also, ls
can't access the folder.
I checked the permissions of /home/myusername
using sudo, and they are all correctly set to:
drwxr-xr-x 25 myusername myusername 4096 Aug 26 17:30 myusername
A testuser, that I created, has the same promblems. It cannot log into the GUI, either. Only a guest session can do it (I guess that is because the guest home folder is created inside /tmp
).
What do I need to do, to restore my permissions/get access to my home folder again??? Any suggestions?
Cheers, Sebastian
What are the permissions on
/home
? Maybe there is ax
permission missing for a directory?ls -ld /home
– Volker Siegel – 2014-08-27T11:58:23.117@VolkerSiegel There was indeed an
x
permission missing for world in/home
. Seems like this solved the problem! I will report, once I have confirmed that all is functioning. – Sebastian S. – 2014-08-27T12:42:28.530