Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with Sudo and Panel Launcher
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gmcle454
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 173
Location: U.S. - Virginia

PostPosted: Fri Jun 25, 2004 12:12 am    Post subject: Problem with Sudo and Panel Launcher Reply with quote

As a securtiy measure, my web-space provider requires me to use an ssl wraper to log-in to upload and administer my website. Currently I use TLSwrap--it works great when run fromthe terminal. I run it as sudo, and tell the program to listen on port 21.
Code:
sudo tlswrap -l 21


I wanted to create a launcher on my top panel so that I could just click the icon and it would run the above command. for some reason NOTHING WORKS when run from a panel launcher. I've tried all of the following:
Code:
sudo tlswrap -l 21

Code:
sudo -l -c tlswrap -l 21

Code:
sudo su -l -c tlswrap -l 21

Code:
su - tlswrap -l 21


What's going on?
_________________
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
Back to top
View user's profile Send private message
daledude
n00b
n00b


Joined: 05 Apr 2004
Posts: 52

PostPosted: Fri Jun 25, 2004 12:20 am    Post subject: Reply with quote

I don't remember off hand where sudo and tlswrap are so use whereis to find out (i.e. whereis sudo). Then use the full paths. If that doesn't work then try su - instead of sudo otherwise you would have to play with environment vars.

example (paths are bound to be wrong!):
/bin/sudo /usr/bin/tlswrap -l 21
Back to top
View user's profile Send private message
gmcle454
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 173
Location: U.S. - Virginia

PostPosted: Fri Jun 25, 2004 12:35 am    Post subject: Reply with quote

Code:
sudo su -c /usr/local/bin/tlswrap -l 21

Code:
/user/bin/sudo su -c /usr/local/bin/tlswrap -l 21

Code:
/user/bin/sudo /usr/local/bin/tlswrap -l 21

Code:
/user/bin/sudo tlswrap -l 21


Nothing worked :cry: 8O
_________________
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
Back to top
View user's profile Send private message
daledude
n00b
n00b


Joined: 05 Apr 2004
Posts: 52

PostPosted: Fri Jun 25, 2004 12:42 am    Post subject: Reply with quote

/user/bin? Double check your paths.

Try running the commands with the full paths from the command line first before attempting to hide them in a launcher. If it works from the command line it will most likely work in a launcher.

sudo or su but not both. I.E.:
/usr/bin/sudo /usr/bin/tlswrap -l 21
OR
/bin/su - "/usr/bin/tlswrap -l 21"
Back to top
View user's profile Send private message
gmcle454
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 173
Location: U.S. - Virginia

PostPosted: Fri Jun 25, 2004 12:54 am    Post subject: Reply with quote

gmcle454 wrote:
Code:
/user/bin/sudo /usr/local/bin/tlswrap -l 21

Nothing worked :cry: 8O



Tried that already, no go.


Code:
/bin/su - "/usr/local/bin/tlswrap -l 21"


didn't work either.
_________________
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
Back to top
View user's profile Send private message
daledude
n00b
n00b


Joined: 05 Apr 2004
Posts: 52

PostPosted: Fri Jun 25, 2004 1:11 am    Post subject: Reply with quote

Just to be clear, before moving on, paste the output of these:

whereis sudo
whereis tlswrap
Back to top
View user's profile Send private message
gmcle454
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 173
Location: U.S. - Virginia

PostPosted: Mon Jun 28, 2004 3:51 am    Post subject: Reply with quote

Sorry it took so long to get back to you.

Code:
kane@Workstation-1 kane $ whereis sudo
sudo: /usr/bin/sudo /usr/man/man8/sudo.8.gz /usr/share/man/man8/sudo.8.gz

Code:
kane@Workstation-1 kane $ whereis tlswrap
tlswrap: /usr/local/bin/tlswrap


Here is the acutual launcher command:
Code:
/usr/bin/sudo /usr/local/bin/tlswrap -l 21

_________________
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
Back to top
View user's profile Send private message
gmcle454
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 173
Location: U.S. - Virginia

PostPosted: Tue Jun 29, 2004 3:20 am    Post subject: Reply with quote

I kept tinkering arround with this and found that most of the variations work IF the launcher does not run the command in a terminal. For some reason, checking the "launch in terminal" box renders the launcher useless. Anyway, I can live without having another terminal open. Thanks for the help!
_________________
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum