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

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

--

███ ███
█ █/ /███ █ ██ ███ ███ ███
███ ███ █▇██ ███ ▉▉█ ██ █▇▇
█▇██▇▇▉▉████▇▇█ψ 懶惰笨蟲

--

All Comments

Kristin avatarKristin2008-06-02
要看distribution唷.. redhat系列預設會建..
Elvira avatarElvira2008-06-07
問題原PO是說用ubuntu啦....(轉移焦點貌)
Rosalind avatarRosalind2008-06-10
xD"
Kristin avatarKristin2008-06-12
@_@ 需不需要再加 adduser xxx video or audio 啊...?