Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2007 09:21 PM
тАО11-18-2007 09:21 PM
ping
When I run command ping
under any user (except root)
,the following message display "sh: ping :not found"
What should I do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 03:08 AM
тАО11-19-2007 03:08 AM
Re: ping
(PATH is an environment variable that lists all the directories the shell searches for executable commands. To examine the value of the variable, run "echo $PATH". The default value for PATH is defined in the /etc/PATH file.)
As a normal user, you can run ping by specifying the full name:
/usr/sbin/ping
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 03:22 AM
тАО11-19-2007 03:22 AM
Re: ping
Open user's .profile add the following entry, save&exit
alias ping='/usr/sbin/ping'
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 01:39 PM
тАО11-19-2007 01:39 PM
Re: ping
you can use full path /usr/sbin/ping to execute the ping command.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 01:45 PM
тАО11-19-2007 01:45 PM
Re: ping
$ /etc/ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 01:54 PM
тАО11-19-2007 01:54 PM
Re: ping
While root you should have used "whence ping" to find its absolute path.
You can also find ping by its tlink: /etc/ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 08:59 PM
тАО11-19-2007 08:59 PM
Re: ping
The location of the ping program in /usr/sbin
is for good reason because only a privileged user is allowed to generate ICMP echo-request packets.
As you can see the program is owned by root and has the suid bit set (one of the few commands on a Unix system) so that every user can execute this command with the effective uid of root.
$ ll /usr/sbin/ping
-r-sr-xr-x 1 root bin 32768 Oct 17 2006 /usr/sbin/ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2007 11:58 PM
тАО11-19-2007 11:58 PM
Re: ping
To determine which path is used for ping in the other profile, you can run either of the following commands:
server1: home/yogeeraj>whereis ping
ping: /usr/sbin/ping /usr/share/man/man1m.Z/ping.1m
or
server1: home/yogeeraj>which ping
/usr/sbin/ping
server1: home/yogeeraj>
You can then amend the PATH environment variable for root accordingly.
Similarly if you find any other commands that are not working, you can proceed in the same way.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2007 06:24 PM
тАО11-20-2007 06:24 PM
Re: ping
Open users .profile and append the following at PATH line
:/usr/sbin
Shree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2007 07:16 PM
тАО11-20-2007 07:16 PM
Re: ping
Mark Syder (like the drink but spelt different)