commands to change user security params
chsec -f /etc/security/user -s default -a "histsize = 0"
chsec -f /etc/security/user -s default -a "histsize = 5"
1 To change the /dev/tty0 port to automatically lock if 5 unsuccessful login attempts occur within 60 seconds,
enter:
chsec -f /etc/security/login.cfg -s /dev/tty0 -a logindisable=5 -a logininterval=60
2 To unlock the /dev/tty0 port after it has been locked by the system, enter:
chsec -f /etc/security/portlog -s /dev/tty0 -a locktime=0
3 To allow logins from 8:00 a.m. until 5:00 p.m. for all users, enter:
chsec -f /etc/security/user -s default -a logintimes=:0800-1700
4 To change the CPU time limit of user joe to 1 hour (3600 seconds), enter:
chsec -f /etc/security/limits -s joe -a cpu=3600
Comments
Post a Comment