/etc/default/useradd file is as follow:
# useradd defaults file
man page for
useradd provides many obvious options for when I use the
It also says in the
Default values for account creation.
But it doesn't specify what values are valid within this file.
I have tried using the options for the
useradd binary in this file but they seem to be ignored.
So I should probably do some clarifications:
I am used to the debian style useradd and adduser
I'm working now, in a CentOS system and there really only is useradd. The whole point in any of this work is to modify the base user creation for a standard practice, by default:
$ sudo useradd someuser
$ cat /etc/passwd
$ groups someuser
someuser : someuser
I was hoping that I could just modify /etc/default/useradd to set some basics like:
But these sorts of mods to the /etc/default/useradd file are just ignored. I could just write some simple bash script to feed useradd the defaults, but would rather not if there's just some simple config I am overlooking.