Questions tagged [useradd]
68 questions
5
votes
1 answer
What's the difference between the -d and -m options for useradd?
When we use useradd, what is the difference between -d and -m? Because the definitions of both sound similar, which is responsible for creating a home directory.

shaunx333
- 71
1
vote
1 answer
How to add user from guest user?
I've installed ubuntu using wubi from windows. I remembered I provided an username and password. But now I can log in only as guest user from where I can't privileges to install or run program. Can anyone help me giving solution how to add user from…
0
votes
3 answers
Useradd command input
If you add a user using useradd you get asked to supply some other information about the user (Full name, room number, work phone etc).
Where exactly is this information being stored?
How do you access this information?
How do you edit this…

Jack Pettersson
- 103
0
votes
1 answer
Ubuntu command 'adduser' is not creating directory 'usertes' in '/home'
I have been creating a user with command adduser, but it did not create directory /home/usertes,
# adduser usertes
And this happens if I delete the user with command userdel:
# userdel usertes
userdel: user usertes is currently logged in
Not…

Loren Ramly
- 419
0
votes
1 answer
Ubuntu22.04: useradd don't work as expected
I setup a factory new ubuntu 22.04.
I run useradd test1, there is no home directory created.
I run useradd -m test2, there is home directory with ~/.bashrc and some other environment files. But the bash script doesn't seem to work: here is a…
0
votes
0 answers
how to create a user in linux that user can only use a text editor
How to create a user in Linux that user can only use a text editor. And if that user exit from the text editor the system automatically shut down
0
votes
0 answers
useradd for no home and no loging
I want to make an user that have no home folder and no login ability.
sudo useradd -s /bin/false [demouser]
I omitted -m parameter since that makes the home folder for the demouser.
I did -s /bin/false option for making this demouser cannot…

Smile
- 1,099