AIX For System Administrators
AIX For System Administrators
More
Next Blog
ABOUT
FS - LVM
GENERAL
HACMP - POWERHA
HMC - ISD
NETWORK
NIM
PERFORMANCE
STORAGE
UPDATE - INSTALL
VIO
+EXTRAS
If the user name is valid, but the password is incorrect, the number of failed attempts are tracked in /etc/security/lastlog.
root@bb_lpar: / # cat /etc/security/lastlog
root:
http://aix4admins.blogspot.com/2012/06/user-login-process-login-process.html
1/4
2/17/2014
-------------6. /etc/motd:
The login program sets the current directory to the user's HOME directory and displays the content of /etc/motd , date of the last successful
login, and the number of unsuccessful login attempts since the last successful login.
(if .hushlogin file is found in the HOME directory these infos will not be displayed)
-------------7. shell:
Finally, control is passed to the login shell (as defined in /etc/passwd) which will read /etc/environment and run /etc/profile and
$HOME/.profile and $HOME/.kshrc (when using Korn shell).
-------------When a user logs out, the shell terminates and a new getty process is spawned for that port.
-------------Files used for user/environment customization (in login sequence):
1. /etc/environment
2. /etc/profile
3. $HOME/.profile
4. $HOME/.kshrc
<--contains variables specifying the basic environment for all processes ( PATH, TZ, LANG...)
<-- sets other system-wide default variables (TERM...)
<-- lets you customize your individual working environment (PATH, ENV, PS1...)
<--if it is used, user can customize his personal Korn shell environment (set -o vi, alias...)
contains the message to be displayed every time a user logs in to the system.
contains the record of users logged into the system. (who /etc/utmp)
records the logins to the system. (who /var/adm/wtmp)
records information about su - username
sets base environment variables for all processes (PATH, TZ, LANG...) (don't put commands there, only root)
specifies additional environment settings for all users. (TERM...) (only root)
/etc/security/login.cfg
/etc/security/lastlog
/etc/security/failedlogin
/etc/security/environ
/etc/security/limits
/etc/security/user
$HOME/.profile
specifies user specific settings (user can overwrite settings from /etc/environment and /etc/profile)
($HOME/profile contains ENV=$HOME/.kshrc)
user can customize his Korn shell environment (set -o vi, alias...) (it will be run when opening new shell)
$HOME/.kshrc
--------------
http://aix4admins.blogspot.com/2012/06/user-login-process-login-process.html
2/4
2/17/2014
7 comments:
Rajesh Mohan April 5, 2013 at 6:15 PM
is it possible to restrict the number of users can login to an aix server concurrently??? how to check & change?
Reply
Replies
aix
http://aix4admins.blogspot.com/2012/06/user-login-process-login-process.html
3/4
2/17/2014
Comment as:
Publish
Google Account
Preview
Newer Post
Home
Older Post
http://aix4admins.blogspot.com/2012/06/user-login-process-login-process.html
4/4