login

LOGIN(1)                    General Commands Manual                   LOGIN(1)



åå
       login - ã·ã¹ãã ä¸ã§ã»ãã·ã§ã³ãéã

æ¸å¼
       login [-p] [username] [ENV=VAR ...]
       login [-p] [-h host] [-f username]
       login [-p] -r host

説æ
       login ã¯ã·ã¹ãã ã«æ°ãã«ã»ãã·ã§ã³ãéãããã«ç¨ããããã
       é常ã¯ãã¦ã¼ã¶ã®ç«¯æ«ã«è¡¨ç¤ºããã login: ã¨ãããã‐
       ã³ããã«å¿ããäºã«ãã£ã¦èªåçã«èµ·åãããã login ã¯ã·ã§ã«å°ç¨ã®ãã®ã§ããã ãµããã‐
       ã»ã¹ã¨ãã¦èµ·åãããã¨ã¯ã§ããªãã é常ã·ã§ã«ã¯ login ã exec login
       ã¨ã¿ãªãã®ã§ãã¦ã¼ã¶ã¯ç¾å¨ã®ã·ã§ã«ããæãããã¨ã«ãªãã ãã°ã¤ã³ã·ã§ã«ä»¥å¤ãã
       login ãèµ·åãããã¨ããã¨ã ã¨ã©ã¼ã¡ãã»ã¼ã¸ã表示ãããã

       次ãã§ãå¿è¦ãªå ´åã«ã¯ãã¦ã¼ã¶ã¯ãã¹ã¯ã¼ããå¥åããããä¿ãããã
       ãã¹ã¯ã¼ãã表示ãã¦ãã¾ããªããããã¨ã³ã¼ã¯è¡ãããªãã
       æ°å以ä¸ãã¹ã¯ã¼ãå¥åã«å¤±æãã㨠login ã¯çµäºããéä¿¡ã®æ¥ç¶ã¯åæããã¦ãã¾ãã

       ã¢ã«ã¦ã³ãã«å¯¾ãã¦ãã¹ã¯ã¼ãã®æå¹æéãè¨å®ããã¦ããå ´åã¯ã
       åã«é²ãåã«æ°ãããã¹ã¯ã¼ãã®è¨å®ãä¿ããããã¨ãããã
       ã»ãã·ã§ã³ãç¶ããããã«ã¯å¤ããã¹ã¯ã¼ã㨠æ°ãããã¹ã¯ã¼ããå¥åããªãã¦ã¯ãªããªãã
       詳ããæå ±ã¯ passwd(1) ãåç§ãããã¨ã

       ãã°ã¤ã³ã«æåããã¨ãã·ã¹ãã ã¡ãã»ã¼ã¸ãã¡ã¼ã«ã®æç¡ã表示ãããã ã‐
       ã°ã¤ã³ãã£ã¬ã¯ããªã«é·ã 0 ã®ãã¡ã¤ã« .hushlogin ãä½ã£ã¦ããã°ã
       ã·ã¹ãã ã¡ãã»ã¼ã¸ãã¡ã¤ã«ã§ãã /etc/motd ã®è¡¨ç¤ºãç¡å¹ã«ã§ããã
       ã¡ã¼ã«ã«é¢ããã¡ãã»ã¼ã¸ã¯ãã¡ã¼ã«ããã¯ã¹ã®ç¶æã«ãã£ã¦ "You have new mail.",
       "You have mail.", "No Mail."  ã®ããããã«ãªãã

       ã¦ã¼ã¶ ID ã¨ã°ã«ã¼ãã® ID 㯠/etc/passwd ãã¡ã¤ã«ä¸‐
       ã«è¨è¼ããã¦ããå¤ã«å¾ã£ã¦è¨å®ãããã $HOME, $SHELL, $PATH, $LOGNAME, $MAIL
       ã®å¤ã¯ããã¹ã¯ã¼ãã¨ã³ããªã®ããããã®ãã£ã¼ã«ãã«å¾ã£ã¦è¨å®ãããã ulimit, umask,
       nice å¤ãã GECOS ãã£ã¼ã«ãã®ã¨ã³ããªã¼ã«ãã£ã¦è¨å®ããããã¨ãããã

       ã¤ã³ã¹ãã¼ã«æã®è¨å®ã«ãã£ã¦ã¯ã /etc/ttytype ã®æå®ã«å¾ã£ã¦ã ç°å¢å¤æ°$TERMã
       tty æ¥ç¶ã®ç«¯æ«ã®å (terminal type) ã«åæåããããã¨ãããã

       ã³ãã³ãã¤ã³ã¿ããªã¿ã®åæåã¹ã¯ãªãããå®è¡ããããã¨ãããã
       ãã®æ©è½ã«ã¤ãã¦ã®è©³ããæå ±ã¯é©å½ãªããã¥ã¢ã«ã»ã¯ã·ã§ã³ãåç§ã®ãã¨ã

       ãµãã·ã¹ãã ãã°ã¤ã³ã§ã¯ã ãã°ã¤ã³ã·ã§ã«ã®æåã®æåã« "*" ãç½®ãã
       渡ããããã¼ã ãã£ã¬ã¯ããªã¯ã ã¦ã¼ã¶ãå®éã«ã‐
       ã°ã¤ã³ããæ°ãããã¡ã¤ã«ã·ã¹ãã ã®ã«ã¼ãã¨ãã¦æ±ãããã

ãªãã·ã§ã³
       -p     ç°å¢ãä¿åããã

       -f     ã¦ã¼ã¶ã¯ãã§ã«èªè¨¼ããã¦ãããã®ã¨ãã¦ãèªè¨¼åä½ãè¡ãªããªãã

       -h     ãã®ãã°ã¤ã³ã®ãªã¢ã¼ããã¹ãã®ååã

       -r     rlogin ã®èªåãã°ã¤ã³ãããã³ã«ãå®è¡ããã

       -r, -h, -f ãªãã·ã§ã³ã¯ã root ã login ãèµ·åããå ´åã«ã®ã¿ç¨ããã

è¦å
       ãã®çã® login ã«ã¯å¤ãã®ã³ã³ãã¤ã«æãªãã·ã§ã³ããããã
       ãµã¤ãã«ãã£ã¦ã¯ãã®ãã¡ã®ä¸é¨ãã使ããã¦ããªããããããªãã

       ã·ã¹ãã è¨å®ã®éãã«ãã£ã¦ä¸è¨ãã¡ã¤ã«ã®ç½®ãå ´æã¯å¤ããã

ãã¡ã¤ã«
       /var/run/utmp       - ç¾å¨ã®ãã°ã¤ã³ã»ãã·ã§ã³ã®ãªã¹ã
       /var/log/wtmp       - éå»ã®ãã°ã¤ã³ã»ãã·ã§ã³ã®ãªã¹ã
       /etc/passwd         - ã¦ã¼ã¶ã¢ã«ã¦ã³ãæå ±
       /etc/shadow         - æå·åãã¹ã¯ã¼ãã¨æå¹æéæå ±
       /etc/motd           - ã·ã¹ãã ã¡ãã»ã¼ã¸ãã¡ã¤ã«
       /etc/nologin        - root 以å¤ã®ã¦ã¼ã¶ã®ãã°ã¤ã³ãç¦æ¢ãã
       /etc/ttytype        - 端æ«ã®åã®ãªã¹ã
       $HOME/.hushlogin    - ã·ã¹ãã ã¡ãã»ã¼ã¸ã®è¡¨ç¤ºãæå¶ãã

é¢é£é ç®
       mail(1), passwd(1), sh(1), su(1), login.defs(5), nologin(5), passwd(5),
       getty(8)

èè
       Julianne Frances Haugh <jockgrrl@ix.netcom.com>



                                                                      LOGIN(1)