docker 学习操作记录 3

记录3

  1 [BEGIN] 2019/12/4 15:40:43
  2 Last login: Wed Dec  4 13:56:18 2019 from 192.168.114.1
  3 root@coder:~# man addgroup
  4 ADDUSER(8)                                                             System Manager's Manual                                                            ADDUSER(8)
  5 
  6 NAME
  7        adduser, addgroup - add a user or group to the system
  8 
  9 SYNOPSIS
 10        adduser  [options]  [--home  DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐
 11        word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] user
 12 
 13        adduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid  ID]  [--disabled-password]  [--dis‐
 14        abled-login] [--gecos GECOS] user
 15 
 16        addgroup [options] [--gid ID] group
 17 
 18        addgroup --system [options] [--gid ID] group
 19 
 20        adduser [options] user group
 21 
 22    COMMON OPTIONS
 23 ADDUSER(8)                                                             System Manager's Manual                                                            ADDUSER(8)
 24 
 25 NAME
 26        adduser, addgroup - add a user or group to the system
 27 
 28 SYNOPSIS
 29        adduser  [options]  [--home  DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐
 30        word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] user
 31 
 32        adduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid  ID]  [--disabled-password]  [--dis‐
 33        abled-login] [--gecos GECOS] user
 34 
 35        addgroup [options] [--gid ID] group
 36 
 37        addgroup --system [options] [--gid ID] group
 38 
 39        adduser [options] user group
 40 
 41    COMMON OPTIONS
 42 ADDUSER(8)                                                             System Manager's Manual                                                            ADDUSER(8)
 43 
 44 NAME
 45        adduser, addgroup - add a user or group to the system
 46 
 47 SYNOPSIS
 48        adduser  [options]  [--home  DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐
 49        word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] user
 50 
 51        adduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid  ID]  [--disabled-password]  [--dis‐
 52        abled-login] [--gecos GECOS] user
 53 
 54        addgroup [options] [--gid ID] group
 55 
 56        addgroup --system [options] [--gid ID] group
 57 
 58        adduser [options] user group
 59 
 60    COMMON OPTIONS
 61 root@coder:~# man addgroup
 62 ADDUSER(8)                                                             System Manager's Manual                                                            ADDUSER(8)
 63 
 64 NAME
 65        adduser, addgroup - add a user or group to the system
 66 
 67 SYNOPSIS
 68        adduser  [options]  [--home  DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--ingroup GROUP | --gid ID] [--disabled-pass‐
 69        word] [--disabled-login] [--gecos GECOS] [--add_extra_groups] [--encrypt-home] user
 70 
 71        adduser --system [options] [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--group | --ingroup GROUP | --gid  ID]  [--disabled-password]  [--dis‐
 72        abled-login] [--gecos GECOS] user
 73 
 74        addgroup [options] [--gid ID] group
 75 
 76        addgroup --system [options] [--gid ID] group
 77 
 78        adduser [options] user group
 79 
 80    COMMON OPTIONS
 81        [--quiet] [--debug] [--force-badname] [--help|-h] [--version] [--conf FILE]
 82 
 83 DESCRIPTION
 84        adduser  and  addgroup  add  users  and  groups to the system according to command line options and configuration information in /etc/adduser.conf.  They are
 85        friendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing Debian policy conformant UID  and  GID  values,
 86        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:
 87 
 88    Add a normal user
 89        If called with one non-option argument and without the --system or --group options, adduser will add a normal user.
 90 
 91        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 --uid
 92        option.
 93 
 94        The range specified in the configuration file may be overridden with the --firstuid and --lastuid options.
 95 
 96        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‐
 97        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.  If
 98        this 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  command
 99        line  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 in
100        adduser.conf either by setting ADD_EXTRA_GROUPS to 1 in adduser.conf, or by passing --add_extra_groups on the commandline.
101 
102        adduser will create a home directory subject to DHOME, GROUPHOMES, and LETTERHOMES.  The home directory can be overridden from  the  command  line  with  the
103        --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 the
104        user's home directory will have the correct group.
105 
106        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
107        --gecos  option.   With the --disabled-login option, the account will be created but will be disabled until a password is set. The --disabled-password option
108        will 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
109        --encrypt-home option.  For more information, refer to the -b option of ecryptfs-setup-private(1).
110 
111        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 arguments
112        passed to adduser.local are:
113        username uid gid home-directory
114        The environment variable VERBOSE is set according to the following rule:
115 
116        0 if --quiet is specified
117 
118        1 if neither --quiet nor --debug is specified
119 
120        2 if --debug is specified
121 
122               (The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)
123 
124    Add a system user
125        If 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 uid
126        range  (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
127        "--quiet".
128 
129        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).  If
130        you want to have a specific UID, you can specify it using the --uid option.
131 
132        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.  To
133        place the new system user in a new group with the same ID, use the --group option.
134 
135        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  --shell
136        option), and have logins disabled.  Skeletal configuration files are not copied.
137 
138 
139        2 if --debug is specified
140 
141               (The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)
142 
143    Add a system user
144        If 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 uid
145        range  (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
146        "--quiet".
147 
148        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).  If
149        you want to have a specific UID, you can specify it using the --uid option.
150 
151        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.  To
152        place the new system user in a new group with the same ID, use the --group option.
153 
154        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  --shell
155        option), and have logins disabled.  Skeletal configuration files are not copied.
156 
157 
158        2 if --debug is specified
159 
160               (The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)
161 
162    Add a system user
163        If 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 uid
164        range  (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
165        "--quiet".
166 
167        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).  If
168        you want to have a specific UID, you can specify it using the --uid option.
169 
170        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.  To
171        place the new system user in a new group with the same ID, use the --group option.
172 
173        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  --shell
174        option), and have logins disabled.  Skeletal configuration files are not copied.
175 
176 root@coder:~# man sha256sum
177 SHA256SUM(1)                                                                User Commands                                                               SHA256SUM(1)
178 
179 NAME
180        sha256sum - compute and check SHA256 message digest
181 
182 SYNOPSIS
183        sha256sum [OPTION]... [FILE]...
184 
185 DESCRIPTION
186        Print or check SHA256 (256-bit) checksums.
187 
188        With no FILE, or when FILE is -, read standard input.
189 
190        -b, --binary
191               read in binary mode
192 
193        -c, --check
194               read SHA256 sums from the FILEs and check them
195 
196 root@coder:~# exit
197 注销
198 
199 Connection closed by foreign host.
200 
201 [END] 2019/12/4 16:39:05

 

posted on 2019-12-06 09:27  Z_m  阅读(...)  评论(...编辑  收藏

导航