New answers tagged

0 votes

sudo: unable to stat /etc/sudoers: No such file or directory

The issue caused by mistake instead of #includedir /etc/sudoers.d the last line was modified into #includedir /etc/sudoers
user avatar
10 votes

Is it possible to lock sudo from the command line, without editing sudoers or logging out and back in?

You can do this with the sudo -K or -k options: -K, --remove-timestamp Similar to the -k option, except that it removes the user's cached credentials entirely and may not be used in conjunction with ...
user avatar
  • 2,688

Top 50 recent answers are included