![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Thanks guys
I added the /usr/sbin to the path variable in his profile, and it worked. |
|||
| Google The UNIX and Linux Forums |