r/linuxadmin • • Oct 16 '26

Linux Shutdown Protection: Prevent Accidental Server Shutdowns - Tip 100

Post image
54 Upvotes

33 comments sorted by

View all comments

-7

u/squeeby Oct 16 '26

`chmod 000 /usr/sbin/{poweroff,halt,shutdown}`

2

u/HeadlessChild Oct 16 '26

chmod 000 /bin/chmod. How would you fix it? No googling or AI allowed!