Execute commands without login in so you can execute commands as nobody

This commit is contained in:
Bruno Tavares 2015-05-03 18:12:15 -03:00
parent f7a19affc5
commit 41f1fb4da8

View File

@ -45,7 +45,7 @@ kickstart.user.exec() {
command=`kickstart.user.exec.command.module "$@"`
kickstart.info Running \'"$@"\' as $user
su $user - bash -c "$command"
sudo -H -u $user bash -c "$command"
}
kickstart.user.root?() {