Hello guys! On redhat/centos/fedora the application useradd has a option -M. This option is useful when you use in /etc/login.defs the directive: CREATE_HOME true Perhaps this isn't the right channel to ask for, but the website of shadow is down... http://shadow.pld.org.pl/ So, if this is a compilation option, i will fill greate with. Perdon my poor english... And please, make option CREATE_HOME true, on login.defs, default, like anothers linux distros :)
not a security issue
i'll send an e-mail to upstream shadow dev list to see if they'll add the feature
actually, i just read the source code, and they've already made a decision
default behavior of useradd is to not create the homedir if you want to create the homedir, use the -m option the CREATE_HOME config option is not valid and wont be added
(In reply to comment #4) > default behavior of useradd is to not create the homedir > > if you want to create the homedir, use the -m option > > the CREATE_HOME config option is not valid and wont be added > But this option exist in man of login.defs: CREATE_HOME (boolean) This defines whether useradd should create home directories for users by default. This option is OR'ed with the -m flag on useradd command line. Is it right? So, this option won't be add because isn't safe or because isn't default behavior?
that's a bug in the shadow codebase ... if you read the actual shadow sourcecode, it will error out when it encounters CREATE_HOME ... so the docs are out of sync with the codebase i'll poke upstream about it