I have a problem. When I enter a Ubuntu machine, I see this messages:
Could not chdir to home directory /home/root: No such file or directory /usr/bin/xauth: error in locking authority file /home/root/.Xauthority When I make whoami, I receive the answer: root
but no directory /home/root exist.
When I am trying to create a new user: adduser blabla, I receive this error:
adduser: Only root may add a user or group to the system. When I am trying to create it in a different way: useradd -m blabla, I receive:
useradd: Permission denied. useradd: cannot lock /etc/passwd; try again later. someone can explain me what went wrong?
Thanks in Advance
/home/rootdirectory. The root home is typically located at/rootFrom the error messages, it would appear that you are not the root user for the system. Did you create a user namedroot?cat /etc/passwd | grep root... it should look almost identical to this:root:x:0:0:root:/root:/bin/bash