useradd後沒有在home增加目錄 - Linux

By Hamiltion
at 2008-06-01T02:12
at 2008-06-01T02:12
Table of Contents
※ 引述《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
--
◢ / ◢/◢ /
███ ◢/ ◢ /█ ███ ◢ /◢ /◢ /
█/█ █/ /███ █ █/█ ███ ███ ███/
███ ███ █▇█/█ ███ ▉▉█ █/█ █▇▇
█◤█◤█▇█◤█▇▇◤█◤█◤█◤▉▉█◤███◤▇▇█◤ ψ 懶惰笨蟲
--
: 我用的是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
--
◢ / ◢/◢ /
███ ◢/ ◢ /█ ███ ◢ /◢ /◢ /
█/█ █/ /███ █ █/█ ███ ███ ███/
███ ███ █▇█/█ ███ ▉▉█ █/█ █▇▇
█◤█◤█▇█◤█▇▇◤█◤█◤█◤▉▉█◤███◤▇▇█◤ ψ 懶惰笨蟲
--
Tags:
Linux
All Comments

By Kristin
at 2008-06-02T20:55
at 2008-06-02T20:55

By Elvira
at 2008-06-07T05:50
at 2008-06-07T05:50

By Rosalind
at 2008-06-10T04:04
at 2008-06-10T04:04

By Kristin
at 2008-06-12T15:21
at 2008-06-12T15:21
Related Posts
useradd後沒有在home增加目錄

By Daph Bay
at 2008-06-01T01:50
at 2008-06-01T01:50
Re: Fedora 9 release(國內ftp提供下載)

By Zanna
at 2008-06-01T01:21
at 2008-06-01T01:21
Re: Fedora 9 release(國內ftp提供下載)

By Ursula
at 2008-06-01T01:18
at 2008-06-01T01:18
vim 把括弧內的東西都置換掉

By Rosalind
at 2008-06-01T01:07
at 2008-06-01T01:07
Windows 7, Unix-like based??

By Ula
at 2008-06-01T00:00
at 2008-06-01T00:00