mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-02 22:23:30 +00:00
Modified execAsUser to use bash instead of Bourne shell
This commit is contained in:
1 parent
febdd604b5
commit
65eb29e4fe
1 file changed
+1
-1
+1
-1
@@ -41,7 +41,7 @@ function execAsUser() {
|
|||||||
local username=${1}
|
local username=${1}
|
||||||
local exec_command=${2}
|
local exec_command=${2}
|
||||||
|
|
||||||
sudo -u "${username}" -H sh -c "${exec_command}"
|
sudo -u "${username}" -H bash -c "${exec_command}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Modify the sshd_config file
|
# Modify the sshd_config file
|
||||||
|
|||||||
Reference in new issue
Block a user