17 - Login Login Interface: ASCII Set in Yast for No Graphic Login

17 - Login Login Interface: ASCII Set in Yast for No Graphic Login

Linux-Kurs Themen - Login - 4 January 2002 Michel Bisson 17 - Login Login Interface: ASCII set in YaST for no graphic login. This way the xdm daemon responsible for graphic login will not be loaded. Some programs are useful to get the list of the last logins that happened: id -ng [username] Shows the Present Effective group of a user. id -nG [username] Shows all the groups the present user belongs to. groups Shows all the groups the present user belongs to. id -nu [username] Shows the current username of a user. echo $USER Shows the current username of a user. id -u Shows the current user ID of a user. users Shows all the users presently logged in. locally (short format) who Shows all the users presently logged in. locally (long format) w Shows all the users presently logged in. locally (long format) finger [-l username] Shows all the users presently logged in. locally/remote(long format) lastlog [-u username] Shows the last logins that happened since the logfile /var/log/lastlog (binary format!!) was created . It includes also previous booting, shutdowns and logins. [-t days_before] last Displays all the proper logins that happened since the last creation of the (binary format!!) log file /var/log/wtmp.. This file is regularly compressed and made new. lastb Shows all the bad logins since the (binary!!) log file /var/log/btmp was created. 17_Login.sxw - 1 Linux-Kurs Themen - Login - 4 January 2002 Michel Bisson Login Sequence mingetty is started by init after default runlevel or after a shutdown of itself in a tty. - mingetty 1. Displays Banner: the content of /etc/issue or /etc/issue.net 2. Prompts for a login name and waits for the username 3. Starts the /bin/login command with the username as argument. - login 1. Reads /etc/login.defs and /etc/pam.d/login 2. Authenticates the user using PAM, /etc/passwd and /etc/shadow 3. Sets HOME, PATH, SHELL, TERM, MAIL, & LOGNAME env. variables. 4. Starts /bin/bash shell. - bash 1. Displays the content of /etc/motd 2.Reads /etc/profile - Reads /etc/profile.local (if exists) 3. Reads ~/.profile (if exists) - Reads ~/.bashrc (if exists) - Reads ~/.alias (if exists) 4. Presents prompt and waits for user commands. Logins sequence done through login or su: login username and su -l username or su - username (login only)----> /etc/motd /etc/profile -> /etc/profile.local ~/.profile -> ~/.bashrc -> ~/.alias su username ~/.bashrc ---> /etc/profile -> /etc/profile.local ---> ~/.alias Note that with su username, the ~/.profile is not read. mingetty excape sequences recognized in the /etc/issue file: \d insert current day (localtime), \l insert line on which mingetty is running, \m inserts machine architecture (uname -m), \n inserts machine's network node hostname (uname -n), \o inserts domain name, \r inserts operating system release (uname -r), \t insert current time (localtime), \s inserts operating system name, \U inserts the current number of users which are currently logged in. \U inserts "n users", where as \u only inserts "n". \v inserts operating system version (uname -v). EXAMPLE Linux os i386 #1 Tue Mar 19 21:54:09 MET 1996 was produced by putting "\s \n \m \v" into /etc/issue. 17_Login.sxw - 2.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us