Buscar este blog

lunes, 2 de abril de 2012

Change Default User Login Shell Permanently

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

No hay comentarios:

Publicar un comentario