ubuntu 用户
PHP中文网
PHP中文网 2017-04-22 08:55:44
0
1
478

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

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

PHP中文网
PHP中文网

认证高级PHP讲师

全部回复(1)
大家讲道理

没有/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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!