luseradd defaults to creating w/o need for -m (#32411)
and -M is incorrect in this case
This commit is contained in:
parent
8c5cd9c530
commit
3e80f9caf4
1 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue