成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

useradd 中文man頁面

系統
當不加-D參數,useradd指令使用命令列來指定新帳號的設定值and使用系統上的預設值.新使用者帳號將產生一些系統檔案,使用者目錄建立,拷備起始檔案等,這些均可以利用命令列選項指定。此版本為RedHatLinux提供,可幫每個新加入的使用者建立個別的group,毋須添加-n選項。

NAME

useradd - 帳 號 建 立 或 更 新 新 使 用 者 的 資 訊  

總覽 SYNOPSIS

useradd [-c comment] [-d home_dir]

[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group[,...]]
[-m [-k skeleton_dir]] [-o] [-p passwd]
[-s shell] [-u uid] login
useradd -D [-g default_group] [-b default_home]

[-e default_expire_date] [-f default_inactive]
[-s default_shell]

描述

新 帳 號 建 立

當 不 加 -D 參 數 , useradd 指 令 使 用 命 令 列 來 指 定 新 帳 號 的 設 定 值 and 使 用 系 統 上 的 預 設 值 . 新 使 用 者 帳 號 將 產 生 一 些 系 統 檔 案 , 使 用 者 目 錄 建 立 , 拷 備 起 始 檔 案 等 , 這 些 均 可 以 利 用 命 令列 選 項 指 定 。 此 版 本 為 Red Hat Linux 提 供 , 可 幫 每 個 新 加 入 的 使 用 者 建 立 個 別 的 group , 毋 須 添 加 -n 選 項 。 useradd 可 使 用 的 選 項 為

-c comment
新 帳 號 password 檔 的 說 明 欄 。
-d home_dir
新 帳 號 每 次 登 入 時 所 使 用 的 home_dir 。 預 設 值 為 default_home 內 login 名 稱 , 并 當 成 登 入 時 目 錄 名 稱 。
-e expire_date
帳 號 終 止 日 期 。 日 期 的 指 定 格 式 為 MM/DD/YY 。
-f inactive_days
帳 號 過 期 幾 日 后 永 久 停 權 。 當 值 為 0 時 帳 號 則 立 刻 被 停 權 。 而 當 值 為 -1 時 則 關 閉 此 功 能 , 預 設 值 為 -1
-g initial_group
group 名 稱 或 以 數 字 來 做 為 使 用 者 登 入 起 始 群 組 (group) 。 群 組 名 須 為 現 有 存 在 的 名 稱 。 群 組 數 字 也 須 為 現 有 存 在 的 群 組 。 預 設 的 群 組 數 字 為 1 。
-G group,[...]
定 義 此 使 用 者 為 此 一 堆 groups 的 成 員 。 每 個 群 組 使 用 ??區 格 開 來 , 不 可 以 夾 雜 空 白 字 元 。 群 組 名 同 -g 選 項 的 限 制 。 定 義 值 為 使用 者 的 起 始 群 組 。
-m
使 用 者 目 錄 如 不 存 在 則 自 動 建 立 。 如 使 用 -k 選 項 skeleton_dir 內 的 檔 案 將 復 制 至 使 用 者 目 錄 下 。 然 而 在 /etc/skel 目 錄 下 的 檔 案 也 會 復 制 過 去 取 代 。 任 何 在 skeleton_dir or /etc/skel 的 目 錄 也 相 同 會 在 使 用 者 目 錄 下 一 一 建 立 。 The -k 同 -m 不 建 立 目 錄 以 及 不 復 制 任 何 檔 案 為 預 設 值 。
-o
Allow create user with duplicate (non-unique) UID.
-p passwd
The encrypted password, as returned by crypt(3). The default is to disable the account.
-s shell
使 用 者 登 入 后 使 用 的 shell 名 稱 。 預 設 為 不 填 寫 , 這 樣 系 統 會 幫 你 指 定 預 設 的 登 入 shell 。
-u uid
用 者 的 ID 值 。 必 須 為 唯 一 的 ID 值 , 除 非 用 -o 選 項 。 數 字 不 可 為 負 值。預 設 為 最 小 不 得 小 于 99 而 逐 次 增 加 。 0~99 傳 統 上 是 保 留 給 系 統 帳 號 使 用 。

改 變 預 設 值

當 -D 選 項 出 現 時 , useradd 秀 出 現 在 的 預 設 值 , 或 是 藉 由 命 令 列 的 方 式 更 新 預 設 值 。 可 用 選 項 為 ∶

-b default_home
定 義 使 用 者 所 屬 目 錄 的 前 一 個 目 錄 。 使 用 者 名 稱 會 附 加 在 default_home 后 面 用 來 建 立 新 使 用 者 的 目 錄 。 當 然 使 用 -d 后 則 此 選 項 無 效 。
-e default_expire_date
使 用 者 帳 號 停 止 日 期 。
-f default_inactive
帳 號 過 期 幾 日 后 停 權 。
-g default_group
新 帳 號 起 始 群 組 名 或 ID 。 群 組 名 須 為 現 有 存 在 的 名 稱 。 群 組 I D 也 須 為 現 有 存 在 的 群 組 。
-s default_shell
使 用 者 登 入 后 使 用 的 shell 名 稱 。 往 后 新 加 入 的 帳 號 都 將 使 用 此 shell.

如 不 指 定 任 何 參 數 , useradd 顯 示 目 前 預 設 的 值 。

NOTES

The system administrator is responsible for placing the default user files in the /etc/skel directory.

警告 CAVEATS

不 可 新 增 使 用 者 于 NIS 群 組 中 。 你 必 須 在 NIS 伺 服 器 上 執 行 。

文件 FILES

/etc/passwd - 使 用 者 帳 號 資 訊
/etc/shadow - 使 用 者 帳 號 資 訊 加 密
/etc/group - 群 組 資 訊
/etc/default/useradd - 定 義 資 訊
/etc/skel - 系 統 廣 義 設 定

參見 SEE ALSO

chfn(1), chsh(1), passwd(1), crypt(3), groupadd(8), groupdel(8), groupmod(8), userdel(8), usermod(8)  

#p#

NAME

useradd - Create a new user or update default new user information  

SYNOPSIS

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

Creating New Users

When invoked without the -D option, the useradd command creates a new user account using the values specified on the command line and the default values from the system. The new user account will be entered into the system files as needed, the home directory will be created, and initial files copied, depending on the command line options. The version provided with Red Hat Linux will create a group for each user added to the system, unless the -n option is given. The options which apply to the useradd command are:

-c comment
The new user's password file comment field.
-d home_dir
The new user will be created using home_dir as the value for the user's login directory. The default is to append the login name to default_home and use that as the login directory name.
-e expire_date
The date on which the user account will be disabled. The date is specified in the format YYYY-MM-DD.
-f inactive_days
The number of days after a password expires until the account is permanently disabled. A value of 0 disables the account as soon as the password has expired, and a value of -1 disables the feature. The default value is -1.
-g initial_group
The group name or number of the user's initial login group. The group name must exist. A group number must refer to an already existing group. The default group number is 1 or whatever is specified in /etc/default/useradd.
-G group,[...]
A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. The default is for the user to belong only to the initial group.
-m
The user's home directory will be created if it does not exist. The files contained in skeleton_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 skeleton_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.
-M
The user home directory will not be created, even if the system wide settings from /etc/login.defs is to create home dirs.
-n
A group having the same name as the user being added to the system will be created by default. This option will turn off this Red Hat Linux specific behavior.
-o
Allow create user with duplicate (non-unique) UID.
-p passwd
The encrypted password, as returned by crypt(3). The default is to disable the account.
-r
This flag is used to create a system account. That is, a user with a UID lower than the value of UID_MIN defined in /etc/login.defs and whose password does not expire. Note that useradd will not create a home directory for such an user, regardless of the default setting in /etc/login.defs. You have to specify -m option if you want a home directory for a system account to be created. This is an option added by Red Hat.
-s shell
The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell.
-u uid
The numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is to use the smallest ID value greater than 99 and greater than every other user. Values between 0 and 99 are typically reserved for system accounts.

Changing the default values

When invoked with the -D option, useradd will either display the current default values, or update the default values from the command line. The valid options are

-b default_home
The initial path prefix for a new user's home directory. The user's name will be affixed to the end of default_home to create the new directory name if the -d option is not used when creating a new account. -e default_expire_date
The date on which the user account is disabled.
-f default_inactive
The number of days after a password has expired before the account will be disabled.
-g default_group
The group name or ID for a new user's initial group. The named group must exist, and a numerical group ID must have an existing entry .
-s default_shell
The name of the new user's login shell. The named program will be used for all future new user accounts.

If no options are specified, useradd displays the current default values.  

NOTES

The system administrator is responsible for placing the default user files in the /etc/skel directory.
This version of useradd was modified by Red Hat to suit Red Hat user/group conventions.  

CAVEATS

You may not add a user to an NIS group. This must be performed on the NIS server.  

FILES

/etc/passwd - user account information
/etc/shadow - secure user account information
/etc/group - group information
/etc/gshadow - secure group information
/etc/default/useradd - default information
/etc/login.defs - system-wide settings
/etc/skel - directory containing default files  

SEE ALSO

chfn(1), chsh(1), passwd(1), crypt(3), groupadd(8), groupdel(8), groupmod(8), userdel(8), usermod(8)  

責任編輯:韓亞珊 來源: http://cmpp.linuxforum.net
相關推薦

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:39:39

apm中文man

2011-08-11 17:10:55

cat中文man

2011-08-11 17:35:07

chgrp中文man

2011-08-11 17:53:06

chown中文man

2011-08-11 17:59:24

chsh中文man

2011-08-11 18:07:57

cksum中文man

2011-08-11 18:19:32

col中文man

2011-08-11 18:58:08

date中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-12 09:23:11

diff中文man

2011-08-12 09:23:16

dig中文man

2011-08-12 10:15:13

dumpkeys中文man

2011-08-12 10:41:00

file中文man

2011-08-12 11:15:27

gzip中文man

2011-08-12 13:26:56

groff中文man

2011-08-12 14:10:47

install中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产精品免费观看 | 欧美国产日本一区 | 国产精品久久久久久久久免费相片 | 日韩伦理一区二区 | 国产黄色在线观看 | 久久av一区二区三区 | 亚洲一区二区三区免费在线观看 | 香蕉一区| 国产一区二区精品自拍 | 精品三区 | 久久久久久国产精品免费免费狐狸 | 国产激情视频在线观看 | 午夜理伦三级理论三级在线观看 | 国产精品无码专区在线观看 | 激情毛片| 成人a视频 | 成人国产精品久久 | 在线观看欧美日韩视频 | 欧美黑人狂野猛交老妇 | 欧美在线资源 | 亚洲一区二区免费 | 99精品欧美一区二区三区 | 超碰日韩 | 国产精品视频入口 | 日韩精品在线播放 | 日韩成人国产 | 一区二区三区四区av | 91视视频在线观看入口直接观看 | 色综合一区二区 | 色啪网 | 欧美色人| 精品96久久久久久中文字幕无 | 国产精品自产拍在线观看蜜 | 一区二区免费看 | 亚洲高清视频一区 | www.五月天婷婷 | 福利视频一区 | 九九热免费看 | 欧美男人天堂 | 涩涩片影院 | 韩日一区|