Questions tagged [adduser]

adduser and addgroup are friendlier front ends to useradd, groupadd and usermod.

152 questions
339
votes
3 answers

Run adduser non-interactively

I'd like to use the adduser command to add a user (with disabled password) via a shell script. By default, adduser prompts you for various values (e.g., Full Name). Is there any way to submit these values via command line? Or will I need to useradd…
85
votes
1 answer

Create the home directory while creating a user

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
Simmerjeet
  • 965
  • 1
  • 6
  • 7
8
votes
1 answer

How to remove user from Ubuntu?

I added group using the command in terminal as, $ sudo addgroup XXX And I add user under that group, $ sudo adduser --ingroup XXX YYY Now, I need to remove the same group as well as user(s), how to do?
A J
  • 11,367
  • 17
  • 44
  • 59
6
votes
2 answers

Corrupted /etc/adduser.conf

My /etc/adduser.conf file got corrupted: $ less /etc/adduser.conf "/etc/adduser.conf" may be a binary file. See it anyway? How can I reinstall a fresh copy?
Matt Caswell
  • 2,250
3
votes
1 answer

adduser to multiple groups

I'm trying to add a user into two groups when creating a new account. Now I use this command; adduser --gid 33 --home /home/wwwroot/domain.com --force-badname %USER% and then usermod -a -G group user (let say GID is 1008) I do this for each new…
Erres
  • 75
  • 1
  • 7
1
vote
0 answers

Conflicting Account Exists Locally

I have network user account and I was trying to add it to admin group, using a local admin account. I accidentally typed useradd instead of usermod, and when I restarted my computer it gives error of mci handler. I had to use the recovery mode, and…
may m
  • 11
1
vote
0 answers

Ubuntu Server - Users vanish after reboot

I'm a noob when it comes to Linux. So bare with me here... I'm trying to make a new user. Running adduser goes without any problems. The user's home folder is there if I look under /home/ But after restarting the server, the user vanishes…
1
vote
0 answers

im trying to create a new user but it dosent work

After running sudo adduser charlie, I get: Adding user `charlie' ... Adding new group `charlie' (1002) ... Adding new user `charlie' (1001) with group `charlie' ... Creating home directory `/home/charlie' ... Stopped: chown 1001:1002 /home/charlie:…
0
votes
0 answers

ubuntu 22 LTS adduser not copying /etc/skel

I've added users to 4 nodes of a microk8s cluster using useradd user and typing password and hitting enter to all the asked for info... from what I have read this should copy the contents of the /etc/skel folder to the users homedir? it does not. …
-1
votes
2 answers

trying to add user to sudoers group gives me error

im adding one user to the sudoers file and when i enter the command sudo adduser sudo, shows error is not on the sudoers file. this incident will be reported. Any suggestion what could it be? why that error if im trying to add.
-2
votes
1 answer

have a problem with error 1 during install

I tried to create a new user using the CLI command adduser I did not follow the prompt instructions. The command exited with a error value of one. What should I do?