LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-22-2014, 11:40 PM   #1
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Rep: Reputation: Disabled
Nmap is not working in normal user


Hi,

I have a script
1) Normal user have to run that script and normal user should not see the contents of that script.
2)That script has nmap command. so need to give access to run nmap command also.
 
Old 05-23-2014, 12:02 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
I like this post, no questions, no answers; kind of TODO list
 
Old 05-23-2014, 01:07 AM   #3
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
sorry,
I have a script
1) how to provide permission to Normal user to run that script and normal user should not see the contents of that script.
2)That script has nmap command. so how to give permission to run nmap command in normal user.
 
Old 05-23-2014, 01:49 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
1. shc, see here http://www.datsi.fi.upm.es/~frosal/
2. sudo, see man page or google
 
Old 05-23-2014, 02:22 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
pan64,

2. sh, run «sh -c 'nmap -n www.linuxquestions.org'» as a regular user, it gives pretty much fair results
 
Old 05-23-2014, 02:32 AM   #6
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
as alternative to obfuscation/compilation (1st question), it is common to delegate actual reading/execution to a privileged process; it can be wrapper with SUID bit (e.g. sudo) or a daemon process with socket/API (e.g. HTTP daemon with CGI)
 
  


Reply



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
[SOLVED] NetworkManager isn't behaving properly in normal user, but works well in root user. MarkZar Linux - Networking 1 02-16-2013 11:32 PM
vi is not working as normal user manoj.linux Linux - Enterprise 7 05-02-2012 11:18 AM
Hi. Apache not working under normal user. parsex Linux - Newbie 8 07-27-2006 03:06 PM
X no longer working as normal user - permission denied vharishankar Debian 4 07-15-2006 12:36 AM
iRiver drivers working for normal user ? smau Linux - Hardware 1 10-24-2005 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration