useradd -D

Category: Administration

useradd -D

Show default useradd settings

The -D flag prints the defaults useradd applies to new accounts: base home directory, default shell, skeleton, and expiry policy. These defaults live in /etc/default/useradd. Root can override individual defaults with useradd -D -s /bin/bash.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.