su

SU(1)                       General Commands Manual                      SU(1)



åå
       su - ã¦ã¼ã¶IDãå¤æ´ãããåã¯ã¹ã¼ãã¼ã¦ã¼ã¶ã«ãªã

æ¸å¼
       su [ - ] [ username [ args ] ]

説æ
       su ã¯ãã°ã¤ã³ã»ãã·ã§ã³ä¸ã«å¥ã®ã¦ã¼ã¶ã«æããã¾ãã®ã«ç¨ããã
       ã¦ã¼ã¶åãæå®ããã«èµ·åããå ´åã ãã£ãã©ã«ãã§ã¯ã¹ã¼ãã¼ã¦ã¼ã¶ã®IDã«å¤æ´ããã
       ãªãã·ã§ã³å¼æ°-ãç¨ããã¨ã ç´æ¥ãã°ã¤ã³ããå ´åã¨åãç°å¢ã«åæåãããã

       ã¦ã¼ã¶åã®å¾ãã«è¿½å ã®å¼æ°ãä¸ãããã¨ãã§ãã ãã®å ´åã®å¼æ°ã¯ã¦ã¼ã¶ã®ã‐
       ã°ã¤ã³ã·ã§ã«ã«æ¸¡ãããã ç¹ã«ããã®å¼æ°ã®ä¸ã¤ã¨ãã¦-cã渡ããå ´åã
       ããã«ç¶ãå¼æ°ã¯å¤§é¨åã®ã³ãã³ãã¤ã³ã¿ããªã¿ã«ã³ãã³ãã¨ãã¦è§£éãããã
       ãã®ã³ãã³ãã¯$SHELLã§æå®ãããã·ã§ã«ã§ããããã¯
       æªå®ç¾©ã®å ´åã«ã¯/etc/passwdã§æå®ãããã·ã§ã«ã§å®è¡ãããã

       å¿è¦ãªå ´åã«ã¯ãã¦ã¼ã¶ã«ã¯ãã¹ã¯ã¼ãã®å¥åãä¿ãããã
       ééã£ããã¹ã¯ã¼ããå¥åãããå ´åã«ã¯ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºåãããã
       suãããã¨ããå ´åã¯ãã·ã¹ãã ç ´å£ãæ¤ç¥ããããã«ã ãããæ£ããå ´åãä¸æ‐
       £ãªå ´åã常ã«è¨é²ãæ®ãããã

       ç¾å¨ã®ç°å¢ã¯æ°ããã·ã§ã«ã«å¼ãç¶ãããã
       $PATHã®å¤ã¯ãé常ã®ã¦ã¼ã¶ã®å ´åã¯/bin:/usr/binã«ã
       ã¹ã¼ãã¼ã¦ã¼ã¶ã®å ´åã¯/bin:/usr/bin:/etcã«åè¨å®ãããã

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

ãã¡ã¤ã«
       /etc/passwd - ã¦ã¼ã¶ã¢ã«ã¦ã³ãã®æå ±
       /etc/shadow - æå·åããããã¹ã¯ã¼ãåã³æéæå ±
       $HOME/.profile - ãã£ãã©ã«ãã·ã§ã«ç¨ã®åæåã¹ã¯ãªãã

é¢é£é ç®
       login(1), sh(1)

翻訳è
       å¤é«åç¦ <furutaka@Flux.tokai.jaeri.go.jp>




                                                                         SU(1)