summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Murphy <patrick.muprphy@multitech.com>2020-04-23 14:53:37 -0500
committerPatrick Murphy <patrick.muprphy@multitech.com>2020-04-23 14:53:37 -0500
commit0e6ff85e261941abb6890063929855670e40b718 (patch)
tree19f8f53c129da9a275449c35bec45c50c8acc91b
parentb4c9a323c262f8e3f240574247adecaf6fddfda4 (diff)
downloadcommissioning-0e6ff85e261941abb6890063929855670e40b718.tar.gz
commissioning-0e6ff85e261941abb6890063929855670e40b718.tar.bz2
commissioning-0e6ff85e261941abb6890063929855670e40b718.zip
added authorized passwd
-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) {