Linux如何设置输入密码 2024-10-21下载文档一键复制全文 1、用root登录,然后执行useradd –d userhome –g GID username。 2、比如:useradd –d /home/test –g 600 test test。 3、密码设置执行passwd test。 4、输入要为该新用户设置的密码。 5、输入确认密码。