Running a sudo command without a terminal
Rick Stevens
ricks at nerd.com
Mon Mar 16 17:20:46 UTC 2009
Geoffrey Leach wrote:
> I need to run 'sudo <command>' outside of a terminal (xterm or gnome
> terminal). For example from Sessions->Startup Programs or the Command
> Line applet. Seem to me that there is a configuration file option that
> permits this.
>
> Advice? Thanks.
The option is "requiretty" and you'll need to set to off. Just comment
out the line:
Defaults requiretty
in your /etc/sudoers file by using visudo.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer ricks at nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- When you don't know what to do, walk fast and look worried. -
----------------------------------------------------------------------
More information about the users
mailing list