作者abelamos (懒 惰 笨 虫)
看板Linux
标题Re: [问题] useradd後没有在home增加目录
时间Sun Jun 1 02:12:38 2008
※ 引述《Arton0306 (Ar藤)》之铭言:
: 我用的是ubuntu 7.04
: 使用useradd test指令後
: home目录中没有增加test这个目录
: 但passwd和shadow都有多了一行test的资料
: 请问是什麽原因呢?
man useradd
一般 useradd 预设是不会由系统自动在 /home 目录中建立使用者的家目录的
而是需要打上 useradd 所提供的参数名称,
没记错的话,是useradd -d
xxx
useradd [-c comment] [-d home_dir]
[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group[,...]]
[-m [-k skeleton_dir] | -M] [-n] [-o] [-p passwd] [-r]
[-s shell] [-u uid] login
useradd -D [-g default_group] [-b default_home]
[-e default_expire_date] [-f default_inactive]
[-s default_shell]
DESCRIPTION
--
◢
/ ◢
/◢
/
███ ◢
/ ◢
/█ ███ ◢
/◢
/◢
/
█/█ █/ /███ █ █/█ ███ ███ ███/
███ ███ █▇█/█ ███ ▉▉█ █/█ █▇▇
█◤
█◤
█▇█◤
█▇▇◤
█◤
█◤
█◤
▉▉█◤
███◤
▇▇█◤
ψ 懒惰笨虫
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.224.148.208
1F:推 asimon:要看distribution唷.. redhat系列预设会建.. 06/01 02:42
2F:→ abelamos:问题原PO是说用ubuntu啦....(转移焦点貌) 06/01 02:43
3F:推 asimon:xD" 06/01 02:45
4F:推 barnet:@_@ 需不需要再加 adduser xxx video or audio 啊...? 06/01 09:06