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

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