1. sudo -Si
2. chmod 644 /etc/pam.d/sudo
3. vi /etc/pam.d/sudo
4. Add the 'Auth sufficient pam_tid.so' line
5. chmod 444 /etc/pam.d/sudo
6. ...
7. Profit!
Very handy tip though, thanks! 1. sudo -Si
2. chmod 644 /etc/pam.d/sudo
3. vi /etc/pam.d/sudo
4. Add the 'Auth sufficient pam_tid.so' line
5. chmod 444 /etc/pam.d/sudo
6. ...
7. Profit!
Very handy tip though, thanks!emc-sudo () {
local f="$(ec ${1} | gtr '"' '\"')"
emacs -e '(find-file "/sudo::'$f'")'
}
:wq = <move finger of right hand to Shift> <depress Shift> <move finger of left hand to ;> <press-release ;> <release Shift and move finger of left hand and press w and q>
ZZ = <move 2nd finger of left hand to Shift> <depress Shift> <move index finger of left hand to z> <press-release z twice>
As someone with mildly poor dexterity (and I don't touch-type with all my fingers, I mostly use my index fingers), the second approach looks somewhat more interesting to test.
So it should be <move right pinkie to hold right Shift> <move left pinkie to hit Z twice>.
I honestly didn't know about ZZ, seems very convenient. :wq! on a qwerty forces the pinkie to travel all the way up to the top row, which is hell. On my home keyboard I use a layer for special characters, which helps, but still I guess I'll stick to ZZ from now on.
On 11.2.1
Have confirmed that using 'sudo nano /etc/pam.d/sudo' works fine.
No need for the verbosity when nano works I guess. :S
visudo will lint the resulting file and (should) reject the change if it would break your system.