diff options
author | carlosg <carlosg> | 2007-09-11 22:29:13 +0000 |
---|---|---|
committer | carlosg <carlosg> | 2007-09-11 22:29:13 +0000 |
commit | 4fe218693f34713a728dfe43d4196256fb15f2b4 (patch) | |
tree | 0436e0af9486670cdd4b251c96e62db6c990acdf /Users | |
parent | fc43bd9f1177d29c774ab420ba75494d72ddfa67 (diff) |
2007-09-12 Carlos Garnacho <carlosg@gnome.org>
* Users/Users.pm (add_user): use abbreviated options for useradd, they
seem to be more generic, and makes adding users work again for
Slackware. Based on a patch by Markus Kanet <darkvision@gmx.info>. Bug
#471083.
Diffstat (limited to 'Users')
-rw-r--r-- | Users/Users.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Users/Users.pm b/Users/Users.pm index 846eeff..7508e5c 100644 --- a/Users/Users.pm +++ b/Users/Users.pm @@ -601,12 +601,12 @@ sub add_user { # fallback to useradd $command = "$cmd_useradd -m" . - " --home \'" . $$user[$HOME] . "\'" . - " --gid \'" . $$user[$GID] . "\'" . - " --password \'" . $$user[$PASSWD] . "\'" . - " --shell \'" . $$user[$SHELL] . "\'" . - " --uid \'" . $$user[$UID] . "\'" . - " \'" . $$user[$LOGIN] . "\'"; + " -d \'" . $$user[$HOME] . "\'" . + " -g \'" . $$user[$GID] . "\'" . + " -p \'" . $$user[$PASSWD] . "\'" . + " -s \'" . $$user[$SHELL] . "\'" . + " -u \'" . $$user[$UID] . "\'" . + " \'" . $$user[$LOGIN] . "\'"; &Utils::File::run ($command); } |