mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update ghost-user sudoers configuration to temporarely allow all commands without password
This commit is contained in:
parent
5ba3173869
commit
7e4eecaef8
@ -60,7 +60,10 @@ msg_ok "Installed Ghost CLI"
|
|||||||
msg_info "Creating ghost-user"
|
msg_info "Creating ghost-user"
|
||||||
$STD adduser --disabled-password --gecos "Ghost user" ghost-user
|
$STD adduser --disabled-password --gecos "Ghost user" ghost-user
|
||||||
$STD usermod -aG sudo ghost-user
|
$STD usermod -aG sudo ghost-user
|
||||||
echo "ghost-user ALL=(ALL) NOPASSWD: /usr/bin/ghost" | tee /etc/sudoers.d/ghost-user
|
echo "ghost-user ALL=(ALL) NOPASSWD:ALL | tee /etc/sudoers.d/ghost-user
|
||||||
|
|
||||||
|
# echo "ghost-user ALL=(ALL) NOPASSWD:/bin/chown -R ghost:ghost /var/www/ghost/*/content, /bin/mv /tmp/*/ghost_*.service /lib/systemd/system/ghost_*.service, /bin/systemctl daemon-reload, /bin/systemctl is-active ghost_*, /bin/systemctl start ghost_*, /bin/systemctl is-enabled ghost_*, /bin/systemctl enable ghost_* --quiet" | tee /etc/sudoers.d/ghost-user
|
||||||
|
|
||||||
msg_ok "Created ghost-user"
|
msg_ok "Created ghost-user"
|
||||||
|
|
||||||
# Set up Ghost
|
# Set up Ghost
|
||||||
|
Loading…
Reference in New Issue
Block a user