[问题]我在linux下用useradd加了个用户,在home下怎么没它的目录阿?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
drongh
帖子: 1038
注册时间: 2007-01-10 9:32

[问题]我在linux下用useradd加了个用户,在home下怎么没它的目录阿?

#1

帖子 drongh » 2007-03-30 8:31

[问题]我在linux下用useradd加了个用户,在home下怎么没它的目录阿?开始我还以为没加成功呢,我又打了一遍命令后说这个用户以存在,奇怪!!!!
最终完美体
帖子: 170
注册时间: 2007-03-17 15:30

#2

帖子 最终完美体 » 2007-03-30 8:34

貌似只能登陆这个用户才能看到这个文件夹。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#3

帖子 BigSnake.NET » 2007-03-30 12:29

info 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.
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
40248887
帖子: 13
注册时间: 2007-03-29 19:43

#4

帖子 40248887 » 2007-03-30 12:53

要用ADDUSER。。。
我也遇到这样子的情况
drongh
帖子: 1038
注册时间: 2007-01-10 9:32

#5

帖子 drongh » 2007-03-30 17:23

还是楼上的对,看来这是ubuntu的一个bug了
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#6

帖子 karron » 2007-03-30 17:45

还bug,ls的ls不是给出了详细的解释吗?还把关键点都黑体了. 再加上一个参数就会创建目录了.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
lpknnkh
帖子: 54
注册时间: 2006-02-07 18:07

#7

帖子 lpknnkh » 2007-03-30 22:49

useradd –u 1233 –g lion –d /home/lion –c “I am Lion.” –m –s /usr/bin/sh lion
^ ^ ^ ^ ^ ^ ^
UID 属组 家目录 用户注释 建立家目录 shell 用户名
回复