Operating System - HP-UX
1836987 Members
2186 Online
110111 Solutions
New Discussion

Re: How to enable ping for new users

 
SOLVED
Go to solution
Rahul Kumar Gupta
Trusted Contributor

How to enable ping for new users

Dear All,
How to enable ping. We are having two risc servers on which HPOV applications have been installed. I have created a user of Users group, but i am not able to ping any IP address of same subnet after loggin by that user.
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: How to enable ping for new users

Ping should already be enabled. What are the permissions and where is it located?

$ ll `whence ping`
-r-sr-xr-x 1 root bin 32768 Oct 23 2002 /usr/sbin/ping


Pete

Pete
Victor BERRIDGE
Honored Contributor

Re: How to enable ping for new users

Greetings,

What does the command give as output?
not found?

Also check, edit and correct (if needed) in the users .profile:
# Set up the search paths:
PATH=$PATH:/usr/sbin:.



All the best
Victor
Bill Hassell
Honored Contributor

Re: How to enable ping for new users

When you say:

> not able to ping any IP address ...

do you mean that ping runs just fine and simply fails to get a response? Or do you mean that if you use ping and a hostname and ping says hostname not found? Or does ping say permission denied? Or does the ping command say: program not found?

Need a bit more information. There is no configuration between any user and the ping command.


Bill Hassell, sysadmin
Rob Fisher
Advisor

Re: How to enable ping for new users

Since ping is located in /etc you might have to specify /etc/ping.

However, if that is not the problem, the you might try to use traceroute.

This would tell you if you were getting anywhere. It might be that your network administrators are not allowing ICMP packets on the network.
May the winds of life keep you on the right tack
Rahul Kumar Gupta
Trusted Contributor

Re: How to enable ping for new users

Dear All,
I have attached a document, which is containing the o/p of all the commands. Still i am not able to ping any IP address in the same subnet.

Plz tell me what should i do now.
Anshumali
Esteemed Contributor

Re: How to enable ping for new users

i saw the doc....
1. i could see the path is in the profile.
2. file permissions looks ok.

could you try....
i hope you edited the profile as per suggestions above. logout login again(profile execute) or run the profile and check again....

else post the output for

/etc/ping 131.2.10.12
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Rahul Kumar Gupta
Trusted Contributor

Re: How to enable ping for new users

Mr. Anshumali i have done this also...logout and login again, but still no pinging..

Is it needed to restart the server.
Torsten.
Acclaimed Contributor

Re: How to enable ping for new users

ping is in /usr/sbin , but this path is not included in a users path var per default.

As this user, try

/usr/sbin/ping ...

You may include this path into PATH as mentioned above.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bill Hassell
Honored Contributor
Solution

Re: How to enable ping for new users

Based on your attachment, the error is:

ping not found

So tell the users to type in the full path:

/usr/sbin/ping 12.34.56.78

This will work OK although inconvenient. It is important to note that /usr/sbin is not normally in an ordinary user's $PATH because the majority of commands in that directory are root-only commands. ping is one exception, so there are two fixes:

1. Change the file: /etc/PATH and add :/usr/sbin (carefully) to the end of the long line, or

2. Change each user's .profile to add the line:

export PATH=$PATH:/usr/sbin

and have the user login again. Now ping will be found.


Bill Hassell, sysadmin
Anshumali
Esteemed Contributor

Re: How to enable ping for new users

There is no restart required. This is a path issue, thats all. Did you try suggestions by Bill? whats the outcome?
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Rahul Kumar Gupta
Trusted Contributor

Re: How to enable ping for new users

Thnx All,

Finally I am able to ping. I did all the steps in a sequence as all of you told me, But after

1. Change the file:/etc/PATH and add :/usr/sbin (carefully) to the end of the long line.

Making the above correction, Its working fine for all nonroot users. It means this problem is not related to any particular user. Now I have deleted the entry in the .profile.

#set up the search paths:
PATH=$PATH:/usr/sbin:.
To
PATH=$PATH:.
Still its working.

Thnx all
Torsten.
Acclaimed Contributor

Re: How to enable ping for new users

Now read this please:

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rahul Kumar Gupta
Trusted Contributor

Re: How to enable ping for new users

Ya i will do, it looks like a good theam
Rahul Kumar Gupta
Trusted Contributor

Re: How to enable ping for new users

Thnx All,

Finally I am able to ping. I did all the steps in a sequence as all of you told me, But after

1. Change the file:/etc/PATH and add :/usr/sbin (carefully) to the end of the long line.

Making the above correction, Its working fine for all nonroot users. It means this problem is not related to any particular user. Now I have deleted the entry in the .profile.

#set up the search paths:
PATH=$PATH:/usr/sbin:.
To
PATH=$PATH:.
Still its working.

Thnx all