Questions tagged [adduser]

3 questions
2
votes
1 answer

Run a Bash Script on New User Creation by SSSD

Users created on AD can login to Linux with a password. I would like to replace this password login with ssh-key. So far, I've made a custom attribute and placed the public key in it and able to fetch it on Linux with a script. I would like to put…
2
votes
1 answer

Ansible adduser issue

Having some trouble with the user module in Ansible. Everything is technically working, just not as I expected. It seems Ansible uses "useradd" versus the newer "adduser" in Ubuntu and I think its missing some configuration settings when creating…
Atomiklan
  • 539
  • 7
  • 16
0
votes
0 answers

adduser giving groupadd: failure while writing changes to /etc/group error

I'm trying to add user with following cmd in debian machine. adduser --disabled-login --shell '/bin/pre_cli_script.sh' --gecos GECOS 'aa1' > /dev/null && usermod -G 'kashya' 'aa1' && usermod -p…
Vinutha
  • 1
  • 1