I would like to change the default group for new users which are added to the system. Does anybody know in which file this is stored?
I'm using Solaris 11
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communitySee the man page for useradd, specifically the -D flag. You would use
useradd -D -g newusergroupname
The same is true for roleadd
Initial defaults values are hardcoded in useradd
binaries so you have no access to them.
Should you modify one of the defaults values using the command already provided by Timothy Butler (useradd -D ...
), a file named /usr/sadm/defadduser
is created to persistently store the settings.