3.4. Command options

Table 3.1. useradd options

-ccomment (Full Name)
-dpath to home directory
-ginitial group (GID). The GID must already exist
-Gcomma separated list of supplementary groups
-uusers UID
-susers default shell
-ppassword (md5 encrypted, use quotes!)
-eaccount expiry date
-kthe skel directory
-nswitch off the UPG group scheme

Table 3.2. groupadd options

-gassign a GID