Prev | Current Page 344 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


TABLE 4-2
useradd Command Options
Option Description
Provide a description of the new user account. Often the person??™s full name.
Replace comment with the name of the user account (-c jake). Use quotes
to enter multiple words (-c ???jake jackson???).
-d home_dir Set the home directory to use for the account. The default is to name it the
same as the login name and to place it in /home. Replace home_dir with the
directory name to use (for example, -d /mnt/homes/jake).
-D Rather than create a new account, save the supplied information as the new
default settings for any new accounts that are created.
-e expire_date Assign the expiration date for the account in MM/DD/YYYY format. Replace
expire_date with a date you want to use (-e 05/06/2008).
-f -1 Set the number of days after a password expires until the account is
permanently disabled. The default, -1, disables the option. Setting this to 0
disables the account immediately after the password has expired. Replace -1
with the number to use.
-g group Set the primary group (as listed in the /etc/group file) the new user will be
in. Replace group with the group name (-g wheel).
continued
-c comment
-c ???comment here???
149
Learning Basic Administration 4
TABLE 4-2 (continued)
Option Description
-G grouplist Add the new user to the supplied comma-separated list of groups (-G
wheel,sales,tech,lunch).


Pages:
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356