From 4fe218693f34713a728dfe43d4196256fb15f2b4 Mon Sep 17 00:00:00 2001 From: carlosg Date: Tue, 11 Sep 2007 22:29:13 +0000 Subject: 2007-09-12 Carlos Garnacho * 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 . Bug #471083. --- Users/Users.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Users') 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); } -- cgit v1.2.3