Chinaunix

标题: 确任一下正确答案 [useradd] [打印本页]

作者: stock99    时间: 2010-02-06 07:31
标题: 确任一下正确答案 [useradd]
不太确定下面useradd 问题的答案...


------
You need to add a new user named test1 on your Solaris10 using useradd command.
The user's home directory should be automatically created.
Plcae useradd option into the correct place on the command oline.
Note: NOt all options will be used.

# useradd  [option1] /export/home/test1  \
                [option2]  /bin/ksh                \
                [option3]  test1                   \

options:
-d, -c, -P, -s, -D, -m ,-f, -R

ANS: option1 = -D   ; option2 = -m  ; option3 = -R

-------


我觉的答案好像该是 option1 = -d   ; option2 = -s  ; option3 = -m
作者: zhmzhouming    时间: 2010-02-06 08:02
我看也是你的答案。

-R role
One or more comma-separated execution profiles defined in user_attr(4). Roles cannot be assigned to other roles.

-D
Display the default values for group, base_dir, skel_dir, shell, inactive, expire, proj, projname and key=value pairs. When used with the -g, -b, -f, -e, -A, -P, -p, -R, or -K options, the -D option sets the default values for the specified fields. The default values are:

都扯不上边边
作者: easybegin    时间: 2010-02-06 10:55
不太确定下面useradd 问题的答案...


------
You need to add a new user named test1 on your Solari ...
stock99 发表于 2010-02-06 07:31



    你是对的,别太相信所谓的“答案”
作者: waily    时间: 2010-02-07 00:47
这类问题直接可以在系统里敲几个命令不就知道答案了吗
作者: zhangleo1986    时间: 2010-02-08 10:33
# useradd -d /export/home/test1  \
                  -s /bin/ksh                \
                  -m  test1                   \
作者: doging    时间: 2010-02-08 13:05
# useradd -d /export/home/test1  \
                  -s /bin/ksh                \
                 ...
zhangleo1986 发表于 2010-02-08 10:33



    就是这个




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2