summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/pages/index.php (renamed from www/pages/reg.php)1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/pages/reg.php b/www/pages/index.php
index 0d4ce05..3dcb684 100644
--- a/www/pages/reg.php
+++ b/www/pages/index.php
@@ -64,6 +64,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
if(empty($username_err) && empty($password_err) && empty($confirm_password_err)){
// Create user in sudo group
$cmd = "/usr/sbin/useradd -U -m -G sudo,dialout,disk -s /bin/bash " . $username . " 2>&1";
+ syslog(LOG_ALERT, "useradd cmd: $cmd");
$handle = popen($cmd, 'r');
$result = fread($handle, 4192);
$status = pclose($handle);