首頁  >  問答  >  主體

ubuntu 用户

ubuntu server14.04 系统。vim /etc/passwd

bfaruser 这个用户后面没有 /bin/bash.其他用户后面带/bin/bash 这个两个之间有什么区别??

PHP中文网PHP中文网2738 天前483

全部回覆(1)我來回復

  • 大家讲道理

    大家讲道理2017-04-22 08:57:44

    沒有/bin/bash會指定預設的

    用戶登入後,要啟動 一個進程,負責將用戶的操作傳給內核,這個進程是用戶登入系統後運行的命令解釋器或某個特定的程序,即Shell。 Shell是用戶與Linux系統之 間的介面。 Linux的Shell有許多種,每種都有不同的特點。常用的有 sh(BourneShell),csh(CShell),ksh(KornShell),tcsh(TENEX/TOPS- 20typeCShell),bash(BourneAgainShell)等。系統管理員可以根據系統狀況和使用者習慣為使用者指定某個Shell。如果不 指定Shell,那麼系統使用sh為預設的登入Shell,也就是這個欄位的值為/bin/sh。

    http://moper.me/detailed-description-etc-passwd-file.html

    This is the program to run at login (if empty, use /bin/sh). If set to a nonexistent executable, the user will be unable to login through login(1). The value in this field is used to set the through login(1). The value in this field is used to set the through SHELL environment variable.

    參考http://linux.die.net/man/5/passwd

    回覆
    0
  • 取消回覆