diff options
author | Mihail Vasiliev <mickvav@gmail.com> | 2017-09-21 08:22:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 08:22:59 +0300 |
commit | 9435cbeb57cfcf40c35071c7a4f2b8a4861d83c6 (patch) | |
tree | b8ab55b65e1d37c69ec8c978ba44df39aa5cc5be | |
parent | 0c8a6170b42bf699deb1e1fc61af571da642b913 (diff) | |
download | vyatta-cfg-system-9435cbeb57cfcf40c35071c7a4f2b8a4861d83c6.tar.gz vyatta-cfg-system-9435cbeb57cfcf40c35071c7a4f2b8a4861d83c6.zip |
Fix problem with path and permissios for usermod
After vyos moved to non-root commits we need to become root to modify existing users.
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index 1bf058d6..38811ce6 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -161,7 +161,7 @@ sub _update_user { $cmd = 'useradd -m -N'; } else { # update existing account - $cmd = "usermod"; + $cmd = "sudo /usr/sbin/usermod"; } $cmd .= " -s /bin/vbash"; |