luseradd defaults to creating w/o need for -m (#32411)

and -M is incorrect in this case
pull/4420/head
Brian Coca 2017-10-31 17:25:29 -04:00 committed by Matt Davis
parent 8c5cd9c530
commit 3e80f9caf4
1 changed files with 1 additions and 3 deletions

View File

@ -396,9 +396,7 @@ class User(object):
cmd.append(self.password)
if self.create_home:
if self.local:
cmd.append('-M')
else:
if not self.local:
cmd.append('-m')
if self.skeleton is not None: