User Tools

Site Tools


useradd/userdel in Linux


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


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/02/21 19:09 by

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki