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

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

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
大家讲道理

No /bin/bash will specify the default

After the user logs in, a process must be started, which is responsible for transmitting the user's operations to the kernel. This process is a command interpreter or a specific program, that is, Shell, that is run after the user logs in to the system. Shell is the interface between users and Linux systems. There are many types of Linux Shells, each with different characteristics. Commonly used ones include sh(BourneShell), csh(CShell), ksh(KornShell), tcsh(TENEX/TOPS-20typeCShell), bash(BourneAgainShell), etc. System administrators can designate a shell for users based on system conditions and user habits. If you do not specify a shell, the system uses sh as the default login shell, that is, the value of this field is /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.

Reference http://linux.die.net/man/5/passwd

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!