LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-26-2011, 06:45 AM   #1
tgf
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
How to create a launcher to execute zenmap as root?


i wanna do something similar to http://www.linuxquestions.org/questi...h-file-368903/ for zenmap. problem seems to be that i wanna execute it as root.

so how do i get myself a "batch" or command to one-click-open-zenmap-as-root?

Last edited by colucix; 09-26-2011 at 08:49 AM. Reason: Added reference to thread from which this post has been pruned.
 
Old 09-26-2011, 06:11 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
There are a couple of choices:

1. put your account in the wheel group and edit /etc/sudoers to allow %wheel to execute commands as root, then:
- create a launcher script that runs 'sudo zenmap'
or:
- create an alias "alias zenmap='sudo zenmap'"
2. make zenmap setuid, as root run 'chmod u+s <path_to_zenmap>'

Most people will try to avoid the setuid option as it could allow local privilege escalation for any user, i.e. anyone on your machine could become root if they can find a hole in zenmap.
 
Old 09-26-2011, 06:19 PM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Make a launcher that launches the command:

Ubuntu: gksudo zenmap
Other: gksu zenmap

That's all I did.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create panel launcher in new distro GeorgeSelf Linux - Distributions 0 04-08-2009 12:38 PM
How do I create a script launcher Agent Orange Linux - Newbie 3 03-15-2007 02:38 PM
create Wine launcher bigalexe Linux - Newbie 2 04-29-2006 05:29 PM
create launcher in gnome innersmile Linux - General 3 06-09-2005 08:57 AM
create launcher in gnome innersmile Linux - Newbie 2 06-09-2005 07:32 AM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration