summaryrefslogtreecommitdiff
path: root/src/commission_func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/commission_func.cc')
-rw-r--r--src/commission_func.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commission_func.cc b/src/commission_func.cc
index c74a137..5daccbd 100644
--- a/src/commission_func.cc
+++ b/src/commission_func.cc
@@ -170,7 +170,7 @@ int begin_fcgi() {
/****passwd****/
char cmd[64];
- sprintf(cmd, "/usr/bin/passwd %s", tmp_usrname);
+ sprintf(cmd, " sudo /usr/bin/passwd %s", tmp_usrname);
//fpopen = popen(passwd_cmd_gen(tmp_usrname).c_str(), "w");
fpopen = popen(cmd, "w");
if (fpopen == NULL) {