我这就算目标用户的密码是empty也照样切换到greeter
感谢6楼
https://wiki.debian.org/DebianDesktopHowTo#GNOME
在"/etc/pam.d/lightdm"的开头加入:
代码: 全选
auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
代码: 全选
auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
已经有一个用户是自动登录了poloshiao 写了:試試
設定自動登錄
你如何確定 密码是 empty 而不是 space密码是empty
man passwd 的内容:poloshiao 写了:你如何確定 密码是 empty 而不是 space密码是empty
代码: 全选
-d, --delete
Delete a user's password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless.
poloshiao 写了:http://manpages.ubuntu.com/manpages/xen ... ool.1.html
dm-tool - a tool to control the display manager
switch-to-user USERNAME [SESSION]
Switch to a user session.
If this user is already logged in then the display manager will switch to that session, otherwise a new session is started. If authentication is required a greeter will start to collect this. If the session option is provided then this session type will be used, otherwise the default for this user is used.
試試 取消 authentication 看看
把 username 加入 group nopasswdlogin
http://www.tuxgarage.com/2012/07/disabl ... login.html
sudo usermod -a -G nopasswdlogin <USERNAME>
代码: 全选
username@debian:~$ sudo usermod -a -G nopasswdlogin p
[sudo] password for username:
usermod: group 'nopasswdlogin' does not exist
1. 沒有就手動增加为什么默认没有这个组?