Sun Dec 16, 2018 9:45 pm
SUDO_EDITOR=kate sudoedit /etc/sudoers
to run Kate as root
but how to set up txt file associations , say with .txt files to do it ?
it used to work for ages, until some security guru came along and decided that 100's of thousands of users can no longer do it - all of a sudden.
in sudoers, to make life easier you'd do what all these gurus freak out about:
## User privilege specification
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
%sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'