Results 1 to 1 of 1
Hi,
My goal is to only be able to sudo when I'm actually sitting at my desktop (ie. not when SSHed in). In my sudoers file I have:
Code:
root ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-05-2007 #1Linux Newbie
- Join Date
- Oct 2006
- Posts
- 101
sudo only on localhost?
Hi,
My goal is to only be able to sudo when I'm actually sitting at my desktop (ie. not when SSHed in). In my sudoers file I have:
which does not do what I thought it would; I can still sudo everything when SSHed. Is there a way to restrict sudo to only non-SSHed sessions?Code:root ALL=(ALL) SETENV: ALL tux localhost=NOPASSWD: ALL
Thanks!--Erik


Reply With Quote
