User Tools

Site Tools


tech:unix:useradd

useradd/userdel in Linux

useradd

useradd -g users -G audio,tty,wheel,dba -s /bin/bash -m <user>

userdel

userdel <user>

Allow user to 'su - root' without a password

  • Edit /etc/pam.d/su and uncomment the appropriate line
  • Add user to /etc/security/suauth.nopasswd

Now the user can su to root without a password.

tech/unix/useradd.txt · Last modified: 2024/06/21 12:04 by 127.0.0.1