QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1883|回复: 1

[求助]debian的adduser能自动创建用户家目录吗?

[复制链接]
发表于 2006-5-30 08:27:19 | 显示全部楼层 |阅读模式
执行以下命令后,并没有自动生成该用户的家目录
#adduser test -d /home/test

请问:debian sarge 默认的adduser 或 useradd 命令不是自动建立用户家目录的吗?大家的adduser命令能自动创建用户家目录吗?如何才能自动创建用户家目录?
发表于 2006-5-30 09:01:48 | 显示全部楼层
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-7-1 15:25 , Processed in 0.044647 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表