diff options
author | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-23 14:53:37 -0500 |
---|---|---|
committer | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-23 14:53:37 -0500 |
commit | 0e6ff85e261941abb6890063929855670e40b718 (patch) | |
tree | 19f8f53c129da9a275449c35bec45c50c8acc91b | |
parent | b4c9a323c262f8e3f240574247adecaf6fddfda4 (diff) | |
download | commissioning-0e6ff85e261941abb6890063929855670e40b718.tar.gz commissioning-0e6ff85e261941abb6890063929855670e40b718.tar.bz2 commissioning-0e6ff85e261941abb6890063929855670e40b718.zip |
added authorized passwd
-rw-r--r-- | src/commission_func.cc | 2 |
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) { |