View previous topic :: View next topic |
Author |
Message |
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Fri Jun 25, 2004 12:12 am Post subject: Problem with Sudo and Panel Launcher |
|
|
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.
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 -l -c tlswrap -l 21 |
Code: | sudo su -l -c 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 |
|
|
daledude n00b
Joined: 05 Apr 2004 Posts: 52
|
Posted: Fri Jun 25, 2004 12:20 am Post subject: |
|
|
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 |
|
|
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Fri Jun 25, 2004 12:35 am Post subject: |
|
|
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 _________________ Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi. |
|
Back to top |
|
|
daledude n00b
Joined: 05 Apr 2004 Posts: 52
|
Posted: Fri Jun 25, 2004 12:42 am Post subject: |
|
|
/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 |
|
|
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Fri Jun 25, 2004 12:54 am Post subject: |
|
|
gmcle454 wrote: | Code: | /user/bin/sudo /usr/local/bin/tlswrap -l 21 |
Nothing worked |
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 |
|
|
daledude n00b
Joined: 05 Apr 2004 Posts: 52
|
Posted: Fri Jun 25, 2004 1:11 am Post subject: |
|
|
Just to be clear, before moving on, paste the output of these:
whereis sudo
whereis tlswrap |
|
Back to top |
|
|
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Mon Jun 28, 2004 3:51 am Post subject: |
|
|
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 |
|
|
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Tue Jun 29, 2004 3:20 am Post subject: |
|
|
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 |
|
|
|