Heim  >  Fragen und Antworten  >  Hauptteil

ubuntu 用户

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

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

PHP中文网PHP中文网2738 Tage vor481

Antworte allen(1)Ich werde antworten

  • 大家讲道理

    大家讲道理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 SHELL environment variable.

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

    Antwort
    0
  • StornierenAntwort