Project

General

Profile

« Previous | Next » 

Revision 5fb0ac9e

Added by Scott Ullrich over 16 years ago

Use -q to hopefully git rid of messages such as: pw: WARNING account 'admin' will have a valid id of 0 (superuser access!)

View differences:

etc/inc/auth.inc
219 219

  
220 220
	/* root user special handling */
221 221
	if ($user_uid == 0) {
222
		$cmd = "/usr/sbin/pw usermod -n root -s /bin/sh -H 0";
222
		$cmd = "/usr/sbin/pw usermod -q -n root -s /bin/sh -H 0";
223 223
		if($debug)
224 224
			log_error("Running: {$cmd}");
225 225
		$fd = popen($cmd, "w");
......
240 240
		$user_op = "usermod";
241 241

  
242 242
	/* add or mod pw db */
243
	$cmd = "/usr/sbin/pw {$user_op} -u {$user_uid} -n {$user_name}".
243
	$cmd = "/usr/sbin/pw {$user_op} -q -u {$user_uid} -n {$user_name}".
244 244
			" -g {$user_group} -G all -s {$user_shell} -d {$user_home}".
245 245
			" -c ".escapeshellarg($user['fullname'])." -H 0 2>&1";
246 246

  

Also available in: Unified diff