Created
January 29, 2016 12:43
-
-
Save freen/7f306195983e1bc8f7a2 to your computer and use it in GitHub Desktop.
Even though SHELL=/bin/bash in /etc/default/useradd, useradd fails to set the default shell as bash for new users.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@local:~$ cat /etc/default/useradd | grep SHELL | |
# The SHELL variable specifies the default login shell on your | |
SHELL=/bin/bash | |
vagrant@local:~$ sudo useradd -D | |
GROUP=100 | |
HOME=/home | |
INACTIVE=-1 | |
EXPIRE= | |
SHELL=/bin/bash | |
SKEL=/etc/skel | |
CREATE_MAIL_SPOOL=no | |
vagrant@local:~$ sudo useradd testing123 | |
vagrant@local:~$ sudo tail -n 1 /etc/passwd | |
testing123:x:2013:2013::/home/testing123: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment