ubuntu 用户

 Owi妓l_972 发布于 2022-10-25 08:57

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

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

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

    2022-11-12 01:39 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有