Execute commands without login in so you can execute commands as nobody
This commit is contained in:
parent
f7a19affc5
commit
41f1fb4da8
@ -45,7 +45,7 @@ kickstart.user.exec() {
|
|||||||
command=`kickstart.user.exec.command.module "$@"`
|
command=`kickstart.user.exec.command.module "$@"`
|
||||||
|
|
||||||
kickstart.info Running \'"$@"\' as $user
|
kickstart.info Running \'"$@"\' as $user
|
||||||
su $user - bash -c "$command"
|
sudo -H -u $user bash -c "$command"
|
||||||
}
|
}
|
||||||
|
|
||||||
kickstart.user.root?() {
|
kickstart.user.root?() {
|
||||||
|
Loading…
Reference in New Issue
Block a user