[NTLUG:Discuss] Sudo
MadHat
madhat at unspecific.com
Mon Feb 18 11:31:40 CST 2002
On Mon, 2002-02-18 at 11:20, Bobby Sanders wrote:
> RH 6.2 KDE. I have configured sudo to allow me to run kppp when I am
> logged in under my regluar user name. However, I can only run kppp
> if I first open a terminal and do su -. As long as I follow this
> procedure, kppp works from the command line and the icon. Otherwise
> it won't.
>
> Why is this?
I am not completely following, but sudo is run as "sudo programname"
then it will prompt for a password, unless you use the NOPASSWD, then it
just runs. as root, do a visudo to edit the /etc/sudoers file.
Make sure you have a line that looks something like
<username> NOPASSWD: /usr/bin/kppp
and it should work (assuming you don't want it prompting you for a
passwd).
Now depending on how your X is configured, there may be an issue with
xauth or xhost allowing root to run a x window on your x session (as in
the user's X session).
One way to see where the problem is, is to tell kppp to run in a
terminal (one of the options on the properties of the Icon) and it
should echo any errors where you can see them.
>
> Bobby Sanders
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
--
MadHat at Unspecific.com
gpg --keyserver wwwkeys.us.pgp.net --recv-keys 9DDC3E98
Key fingerprint = E786 7B30 7534 DCC2 94D5 91DE E922 0B21 9DDC 3E98
More information about the Discuss
mailing list