venerdì 20 dicembre 2013

CentOS User Management

LOGIN OPTIONS

Login options, for example password aging (part of the shadow-utils component):
/etc/login.defs
umask is eventually overwritten in /etc/bashrc:
[root@centoshost skel]# grep bashrc .??*
.bash_profile:if [ -f ~/.bashrc ]; then
.bash_profile:  . ~/.bashrc
.bashrc:# .bashrc
.bashrc:if [ -f /etc/bashrc ]; then
.bashrc:        . /etc/bashrc
[root@centoshost skel]#

SHADOW-UTILS EXECUTABLES

[root@centoshost ~]# rpm -ql shadow-utils | grep bin
/usr/bin/chage
/usr/bin/gpasswd
/usr/bin/lastlog
/usr/bin/newgrp
/usr/bin/sg
/usr/sbin/adduser
/usr/sbin/chpasswd
/usr/sbin/groupadd
/usr/sbin/groupdel
/usr/sbin/groupmems
/usr/sbin/groupmod
/usr/sbin/grpck
/usr/sbin/grpconv
/usr/sbin/grpunconv
/usr/sbin/newusers
/usr/sbin/pwck
/usr/sbin/pwconv
/usr/sbin/pwunconv
/usr/sbin/useradd
/usr/sbin/userdel
/usr/sbin/usermod
/usr/sbin/vigr
/usr/sbin/vipw
[root@centoshost ~]#

TEMPLATE CONFIGURATION FILES FOR NEW USERS

[marco@centoshost ~]$ ls -la  /etc/skel/
total 20
drwxr-xr-x.  2 root root 4096 Jun 19 00:55 .
drwxr-xr-x. 59 root root 4096 Jun 21 17:45 ..
-rw-r--r--.  1 root root   18 Feb 21 22:09 .bash_logout
-rw-r--r--.  1 root root  176 Feb 21 22:09 .bash_profile
-rw-r--r--.  1 root root  124 Feb 21 22:09 .bashrc
[marco@centoshost ~]$

DOCUMENTATION STARTING POINTS

man 5 shadow
man 1 su
man 8 sudo
man 8 pam