为什么/何时使用 passwd -d?
据man passwd现有资料如下: -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. 出于实验目的,创建了一个测试用户,然后sudo adduser testuser执行了以下命令: sudo passwd -d testuser 因此,su - testuser无需按预期请求任何密码...