The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-30-2005 02:17 AM
-c option in ping command Deepa Shell Programming and Scripting 3 05-31-2002 06:05 AM
how to use PING command efficiently hoang IP Networking 1 04-16-2002 05:04 AM
About ping command Papa Deoo IP Networking 2 09-20-2001 12:50 PM
About ping command Papa Deoo UNIX for Dummies Questions & Answers 1 09-19-2001 03:20 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2006
aladdin aladdin is offline
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
  #2 (permalink)  
Old 12-05-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,956
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
  #3 (permalink)  
Old 12-05-2006
Darwin_ Darwin_ is offline
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
  #4 (permalink)  
Old 12-05-2006
aladdin aladdin is offline
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0