docker 操作记录-3
生活随笔
收集整理的這篇文章主要介紹了
docker 操作记录-3
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
docker操作記錄ubu-16.04
[BEGIN] 2019/12/4 15:40:43 Last login: Wed Dec 4 13:56:18 2019 from 192.168.114.1 root@coder:~# man addgroup ADDUSER(8) System Manager's Manual ADDUSER(8)NAMEadduser, addgroup - add a user or group to the systemSYNOPSISadduser [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] useradduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--dis‐abled-login] [--gecos GECOS] useraddgroup [options] [--gid ID] groupaddgroup --system [options] [--gid ID] groupadduser [options] user groupCOMMON OPTIONS ADDUSER(8) System Manager's Manual ADDUSER(8)NAMEadduser, addgroup - add a user or group to the systemSYNOPSISadduser [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] useradduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--dis‐abled-login] [--gecos GECOS] useraddgroup [options] [--gid ID] groupaddgroup --system [options] [--gid ID] groupadduser [options] user groupCOMMON OPTIONS ADDUSER(8) System Manager's Manual ADDUSER(8)NAMEadduser, addgroup - add a user or group to the systemSYNOPSISadduser [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] useradduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--dis‐abled-login] [--gecos GECOS] useraddgroup [options] [--gid ID] groupaddgroup --system [options] [--gid ID] groupadduser [options] user groupCOMMON OPTIONS root@coder:~# man addgroup ADDUSER(8) System Manager's Manual ADDUSER(8)NAMEadduser, addgroup - add a user or group to the systemSYNOPSISadduser [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] useradduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--dis‐abled-login] [--gecos GECOS] useraddgroup [options] [--gid ID] groupaddgroup --system [options] [--gid ID] groupadduser [options] user groupCOMMON OPTIONS[--quiet] [--debug] [--force-badname] [--help|-h] [--version] [--conf FILE]DESCRIPTIONadduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. They arefriendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing Debian policy conformant UID and GID values,creating a home directory with skeletal configuration, running a custom script, and other features. adduser and addgroup can be run in one of five modes:Add a normal userIf called with one non-option argument and without the --system or --group options, adduser will add a normal user.adduser will choose the first available UID from the range specified for normal users in the configuration file. The UID can be overridden with the --uidoption.The range specified in the configuration file may be overridden with the --firstuid and --lastuid options.By default, each user in Debian GNU/Linux is given a corresponding group with the same name. Usergroups allow group writable directories to be easily main‐tained by placing the appropriate users in the new group, setting the set-group-ID bit in the directory, and ensuring that all users use a umask of 002. Ifthis option is turned off by setting USERGROUPS to no, all users' GIDs are set to USERS_GID. Users' primary groups can also be overridden from the commandline with the --gid or --ingroup options to set the group by id or name, respectively. Also, users can be added to one or more groups defined inadduser.conf either by setting ADD_EXTRA_GROUPS to 1 in adduser.conf, or by passing --add_extra_groups on the commandline.adduser will create a home directory subject to DHOME, GROUPHOMES, and LETTERHOMES. The home directory can be overridden from the command line with the--home option, and the shell with the --shell option. The home directory's set-group-ID bit is set if USERGROUPS is yes so that any files created in theuser's home directory will have the correct group.adduser will copy files from SKEL into the home directory and prompt for finger (gecos) information and a password. The gecos may also be set with the--gecos option. With the --disabled-login option, the account will be created but will be disabled until a password is set. The --disabled-password optionwill not set a password, but login is still possible (for example with SSH RSA keys). To set up an encrypted home directory for the new user, add the--encrypt-home option. For more information, refer to the -b option of ecryptfs-setup-private(1).If the file /usr/local/sbin/adduser.local exists, it will be executed after the user account has been set up in order to do any local setup. The argumentspassed to adduser.local are:username uid gid home-directoryThe environment variable VERBOSE is set according to the following rule:0 if --quiet is specified1 if neither --quiet nor --debug is specified2 if --debug is specified(The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)Add a system userIf called with one non-option argument and the --system option, adduser will add a system user. If a user with the same name already exists in the system uidrange (or, if the uid is specified, if a user with that uid already exists), adduser will exit with a warning. This warning can be suppressed by adding"--quiet".adduser will choose the first available UID from the range specified for system users in the configuration file (FIRST_SYSTEM_UID and LAST_SYSTEM_UID). Ifyou want to have a specific UID, you can specify it using the --uid option.By default, system users are placed in the nogroup group. To place the new system user in an already existing group, use the --gid or --ingroup options. Toplace the new system user in a new group with the same ID, use the --group option.A home directory is created by the same rules as for normal users. The new system user will have the shell /bin/false (unless overridden with the --shelloption), and have logins disabled. Skeletal configuration files are not copied.2 if --debug is specified(The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)Add a system userIf called with one non-option argument and the --system option, adduser will add a system user. If a user with the same name already exists in the system uidrange (or, if the uid is specified, if a user with that uid already exists), adduser will exit with a warning. This warning can be suppressed by adding"--quiet".adduser will choose the first available UID from the range specified for system users in the configuration file (FIRST_SYSTEM_UID and LAST_SYSTEM_UID). Ifyou want to have a specific UID, you can specify it using the --uid option.By default, system users are placed in the nogroup group. To place the new system user in an already existing group, use the --gid or --ingroup options. Toplace the new system user in a new group with the same ID, use the --group option.A home directory is created by the same rules as for normal users. The new system user will have the shell /bin/false (unless overridden with the --shelloption), and have logins disabled. Skeletal configuration files are not copied.2 if --debug is specified(The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)Add a system userIf called with one non-option argument and the --system option, adduser will add a system user. If a user with the same name already exists in the system uidrange (or, if the uid is specified, if a user with that uid already exists), adduser will exit with a warning. This warning can be suppressed by adding"--quiet".adduser will choose the first available UID from the range specified for system users in the configuration file (FIRST_SYSTEM_UID and LAST_SYSTEM_UID). Ifyou want to have a specific UID, you can specify it using the --uid option.By default, system users are placed in the nogroup group. To place the new system user in an already existing group, use the --gid or --ingroup options. Toplace the new system user in a new group with the same ID, use the --group option.A home directory is created by the same rules as for normal users. The new system user will have the shell /bin/false (unless overridden with the --shelloption), and have logins disabled. Skeletal configuration files are not copied.root@coder:~# man sha256sum SHA256SUM(1) User Commands SHA256SUM(1)NAMEsha256sum - compute and check SHA256 message digestSYNOPSISsha256sum [OPTION]... [FILE]...DESCRIPTIONPrint or check SHA256 (256-bit) checksums.With no FILE, or when FILE is -, read standard input.-b, --binaryread in binary mode-c, --checkread SHA256 sums from the FILEs and check themroot@coder:~# exit 注銷Connection closed by foreign host.[END] 2019/12/4 16:39:05?
總結
以上是生活随笔為你收集整理的docker 操作记录-3的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 领导力须突破命令控制式管理
- 下一篇: yum和dnf安装安全更新