//############################################################################ $modName = 'SYSUSER'; //############################################################################ $thisURL = '/adm/getform.html?Module='.$modName; $thisDir = '../modules/'.$modName.'/www'; $_SESSION['modName'] = $modName; //############################################################################ include_once ($thisDir.'/avbackup.php'); print("\n"); if(isset($_POST['_backup']) && ($_POST['_backup'] == "backup")) { Backup(); } if(isset($_POST['_backup']) && ($_POST['_backup'] == "restore")) { Restore(); } print("\n"); //############################################################################ include_once ($thisDir.'/avusertool.php'); print("\n"); if(isset($_POST['_fReset']) && ($_POST['_fReset'] == "yes")) { ChangePassword ("sys", "sys",1); } if(isset($_POST['_fPasswd']) && ($_POST['_fPasswd'] == "yes")) { ChangePassword ("sys",$_POST['_syspwd'],0); } if(isset($_POST['_fUpPasswd']) && ($_POST['_fUpPasswd'] == "yes")) { ChangePassword ($_POST['_upUser'],$_POST['_upPasswd'],0); } print("\n"); //############################################################################ ?>
|
System User Module (SYSUSER)
|
||
|
Adds the user sys with the default password sys to the system. The home directory for this user is /root and the user ID and group ID is 0 (same rights as root). Warning: please change the password after installing this module! |