use*_*867 5 linux login linux-mint
在linux mint mate 17.2甲骨文-XE创建了一个用户oracle与uid = 1001在其密码的部分/etc/shadow是*,这意味着禁止用于登录我猜。
但是用户oracle仍然显示在登录屏幕中。
我试图通过 锁定用户登录passwd -l oracle,但它仍然显示在登录屏幕上。
问题是:
uid >= 1000吗?编辑/etc/lightdm/users.conf(如果未安装 AccountsService - 较旧的系统)并添加yourusername到该行,hidden-users例如:
[UserList]
hidden-users=nobody nobody4 noaccess yourusername
Run Code Online (Sandbox Code Playgroud)
或者(如果启用了 AccountsService - 例如 ubutnu14.04)创建一个包含/var/lib/AccountsService/users/yourusername以下行的文件:
[User]
SystemAccount=true
Run Code Online (Sandbox Code Playgroud)
如果检查 AccountsService 是否安装在 Ubuntu 上,您可以使用以下命令:
dpkg -l accountsservice
Run Code Online (Sandbox Code Playgroud)
或者对于基于 rpm 的系统(例如 CentOS):
rpm -qa | grep glibc-static
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1159 次 |
| 最近记录: |