Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-26-2011, 07:45 AM   #1
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 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 09:49 AM. Reason: Added reference to thread from which this post has been pruned.
Old 09-26-2011, 07:11 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
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'
- 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, 07:19 PM   #3
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.


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 01:38 PM
How do I create a script launcher Agent Orange Linux - Newbie 3 03-15-2007 03:38 PM
create Wine launcher bigalexe Linux - Newbie 2 04-29-2006 06:29 PM
create launcher in gnome innersmile Linux - General 3 06-09-2005 09:57 AM
create launcher in gnome innersmile Linux - Newbie 2 06-09-2005 08:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

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