Hi, I already talked about this in the forums but I was asked to report it here. So I just quote my initial post from the forum here: --------------------------------------------------------------------------------- Hi, today I tried to use useradd the following way: useradd -b /some/path -m -s /bin/false someusername My intention is to get the homedir created at the top of /some/path but useradd alway prints out its --help screen and doesn't create the user. The exitcode is always 2 which useradd's manpage explains as "invalid command syntax". When I replace "-b /some/path" with "-d /some/path/someusername" the user gets created. So what's going wrong here? Do I use the -b switch wrong? Or is this a bug in useradd? Cheers Poly-C ----------------------------------------------------------------------------- Someone responded that this seems to be intended behavior and that -b only works in conjunction with -D. But if that is true, then the useradd(8) manpage is wrong as it lists the -b switch twice and one listing explains -b as being useable without -D switch... Cheers Poly-C Reproducible: Always Steps to Reproduce: 1. useradd -b /some/path -m -s /bin/false someusername ; echo $? 2. useradd shows --help message and existatus of 2 which means "invalid command syntax" Actual Results: "useradd -b /some/path -m -s /bin/false someusername" doesn't create the account Expected Results: Same as with "useradd -d /some/path/someusername -m -s /bin/false someusername"
fixed summary
this seems to be fixed with shadow 4.1.2.2