[求助]debian的adduser能自动创建用户家目录吗?
执行以下命令后,并没有自动生成该用户的家目录#adduser test -d /home/test
请问:debian sarge 默认的adduser 或 useradd 命令不是自动建立用户家目录的吗?大家的adduser命令能自动创建用户家目录吗?如何才能自动创建用户家目录? man useradd
-m, --create-home
The user's home directory will be created if it does not exist. The files contained in SKEL_DIR will be copied to the
home directory if the -k option is used, otherwise the files contained in /etc/skel will be used instead. Any
directories contained in SKEL_DIR or /etc/skel will be created in the user's home directory as well. The -k option is
only valid in conjunction with the -m option. The default is to not create the directory and to not copy any files.
页:
[1]