Login issue with root access on Pop-OS system.
Login issue with root access on Pop-OS system.
You're experiencing an issue where the second user doesn't appear in the expected directory structure after creating it. The ' /etc/passwd' file shows the home directory as '/home/user2', but when you try to log in as that user, you get a directory not found error. It seems the system isn't recognizing the new user's home folder correctly. Have you verified the user creation command or checked for any permission issues? Also, ensure the superuser has the necessary rights to access the target directory.
Did you set a different Password for user 2? If so, try the password for user 2 and see what happens?
Root has its own separate password for sudo. When using sudo, it relies on your credentials. You can reset the root password via sudo passwd, but it's best to avoid using root whenever possible. If you run sudo passwd user2, you can modify the password for that user. The key point is to be cautious about handling root access.
I need the precise command details, including all flags and parameters. Could you clarify what you executed? Did you apply the -m option?
Created a user named username with the command "useradd username"