84669 人学习
152542 人学习
20005 人学习
5487 人学习
7821 人学习
359900 人学习
3350 人学习
180660 人学习
48569 人学习
18603 人学习
40936 人学习
1549 人学习
1183 人学习
32909 人学习
ubuntu server14.04 系统。vim /etc/passwd
vim /etc/passwd
bfaruser 这个用户后面没有 /bin/bash.其他用户后面带/bin/bash 这个两个之间有什么区别??
bfaruser
/bin/bash
认证高级PHP讲师
没有/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
没有
/bin/bash
会指定默认的http://moper.me/detailed-description-etc-passwd-file.html
参考http://linux.die.net/man/5/passwd