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    ALL=(ALL) SETENV: ALL
tux     localhost=NOPASSWD: ALL
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?

Thanks!