The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNable to find ping command swepaul UNIX for Dummies Questions & Answers 3 05-29-2005 11:17 PM
-c option in ping command Deepa Shell Programming and Scripting 3 05-31-2002 03:05 AM
how to use PING command efficiently hoang IP Networking 1 04-16-2002 02:04 AM
About ping command Papa Deoo IP Networking 2 09-20-2001 09:50 AM
About ping command Papa Deoo UNIX for Dummies Questions & Answers 1 09-19-2001 12:20 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2006
Registered User
 

Join Date: Oct 2006
Posts: 78
Ping command

Hello Everybody:
Im the root of the system, I need to grant some limited priviliges user an acess to the ping command so he can ping some IPs with his script.
should I add the command to his path??
or what??
Thanks a lot
Reply With Quote
Forum Sponsor
  #2  
Old 12-05-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
every user can use ping afaik.... let him use the whole path to the "ping" command in his script!

PING=/usr/sbin/ping (path in solaris)
and then use
$PING hostname/ip
Reply With Quote
  #3  
Old 12-05-2006
Registered User
 

Join Date: Dec 2006
Posts: 23
Everyone can use ping. A user always (with appropriate permissions) can execute binaries with specifying the
absolute path, even if the binary is not in his PATH. e.g /usr/sbin/ping, except for when he's jailed in a restricted shell.

Then he would get something like

bash: /usr/sbin/ping: restricted: cannot specify `/' in command names

Besides that, special privileges can be given to users with "sudo", but in case of ping, thats not necessary.

Darwin
Reply With Quote
  #4  
Old 12-05-2006
Registered User
 

Join Date: Oct 2006
Posts: 78
Thanks guys
I added the /usr/sbin to the path variable in his profile, and it worked.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0