8:16 PM
@patrix Or flag this as off topic. The close reason for basic customer support is perfectly clear and linked to let a new user know how to ask a customer support question here with enough details to avoid guessing 20 questions about the confusion or support needed.
in Discussion on answer by patrix: How to prevent 'sudo rm -rf /', 31 mins ago, by Stack Exchange
7
You can add a line like %admin ALL = !/bin/rm -rf / to your sudoers file to prevent the execution of the command with the specific options. Or, if you want to exclude several commands, you can work with command aliases Cmnd_Alias DANGEROUS_CMNDS=/bin/rm -rf /, /bin/rm -fr / %admin ALL=!DANGE...
« first day (1763 days earlier) ← previous day next day → last day (3239 days later) »