Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我将用途添加到旧的 SuSE 版本(11.3、11.4),useradd 会创建不活动的用户。我需要使用 yast 来激活新用户。
有没有办法在脚本中做到这一点?(不与 yast 交互)....
我找到了解决方案:
SuSE 11.3 和 11.4 需要 useradd 的密码。否则新用户不活跃。
至少在 SuSE 12.3 中不允许使用密码。用户没有密码,他必须使用 ssh public key auth 或其他方式(这就是我想要的)。