[sudo-users] console users only

Todd C. Miller Todd.Miller at courtesan.com
Thu Apr 23 09:53:45 EDT 2009

In message <49EFBAA5.8070502 at science.unsw.edu.au>
	so spake Jayen Ashar (jayen):

> Is it possible to make a sudoers to allow only console users to execute 
> commands, like X?

No, sudo doesn't support restricting commands based on the tty the
user is logged in to.

On Linux, you may wish to look into configuring pam_console.so
via /etc/security/console.perms and /etc/security/console.apps/
to see if that will meet your needs.

 - toid

More information about the sudo-users mailing list