From 5fb0ac9efb67cf314d006ab8164f4ffeb4ec3494 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 27 Mar 2009 18:24:07 -0400 Subject: Use -q to hopefully git rid of messages such as: pw: WARNING account 'admin' will have a valid id of 0 (superuser access!) --- etc/inc/auth.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 10365b4..545c79e 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -219,7 +219,7 @@ function local_user_set(& $user) { /* root user special handling */ if ($user_uid == 0) { - $cmd = "/usr/sbin/pw usermod -n root -s /bin/sh -H 0"; + $cmd = "/usr/sbin/pw usermod -q -n root -s /bin/sh -H 0"; if($debug) log_error("Running: {$cmd}"); $fd = popen($cmd, "w"); @@ -240,7 +240,7 @@ function local_user_set(& $user) { $user_op = "usermod"; /* add or mod pw db */ - $cmd = "/usr/sbin/pw {$user_op} -u {$user_uid} -n {$user_name}". + $cmd = "/usr/sbin/pw {$user_op} -q -u {$user_uid} -n {$user_name}". " -g {$user_group} -G all -s {$user_shell} -d {$user_home}". " -c ".escapeshellarg($user['fullname'])." -H 0 2>&1"; -- cgit v1.1