Quantcast
Channel: History Linux
Viewing all articles
Browse latest Browse all 25

Change Default User Login Shell Permanently

$
0
0
To change the default linux shell type every time a new user is created, simply modify linux file /etc/default/useradd. 

Edit /etc/default/useradd, the default linux shell is explicitly defined. You can change that to suit your needs.

[root@MyLinuxServer ~]# vi  /etc/default/useradd

# useradd defaults file
GROUP=100
HOME=/var/www/html                                                        "Change default folder user"
INACTIVE=-1
EXPIRE=
SHELL=/sbin/nologin                                                            "Not login ssh"
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes

Viewing all articles
Browse latest Browse all 25

Trending Articles