Just have your script ask for user name, password, home directory, etc. and invoke adduser with a system call.
这里只是让脚本询问用户名、密码、主目录等等,并以system调用来调用adduser。
The sixth column contains the location of the user's home directory. Normally this directory lives in the /home directory and has the same name as the user id.
第六列是用户主目录的位置,这个目录通常位于 /home 目录下,目录名与用户ID相同。
Where and are replaced with the appropriate user home directory path and user name, respectively.
在此,和分别被合适的用户主目录路径和用户名称所取代。
Where and are replaced with the appropriate user home directory path and user name, respectively.
在此,和分别被合适的用户主目录路径和用户名称所取代。
应用推荐