I have added user using the adduser
command, but a directory with is new user name is not created in /home
, and I'm also not able to run any command with this user. After logging from this user it's only showing($) on the screen using a cli
I have added user using the adduser
command, but a directory with is new user name is not created in /home
, and I'm also not able to run any command with this user. After logging from this user it's only showing($) on the screen using a cli
Find and open Users and Groups. Delete that user, and create a new one
There is more on using it here.
For command line, these should work:
You have to use
-m
, otherwise no home directory will be created. If you want to specify the path of the home directory, use-d
and specify the path:You can then set the password with:
All of the above need to be run as root, or with the
sudo
command beforehand. For more info, runman adduser
.Hope this helps