Operating System - HP-UX
1821802 Members
3254 Online
109637 Solutions
New Discussion юеВ

execute ping from non-root user

 
SOLVED
Go to solution
Alpha977
Valued Contributor

execute ping from non-root user

Hi!
I need to exectue ping from another user, not root.
I have tryed by SAM and manual (useradd) but i can't!
How i can solve?

Thank you!
6 REPLIES 6
Torsten.
Acclaimed Contributor
Solution

Re: execute ping from non-root user

Use the full path:

# /usr/sbin/ping

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!   
rariasn
Honored Contributor

Re: execute ping from non-root user

$ nslookup host-name
-or-
$ nslookup ip-address

$ /etc/ping host-name
-or-
$ /usr/sbin/ping ip-address

rgs,
ran
Alpha977
Valued Contributor

Re: execute ping from non-root user

Ok! Thank you!

So, this is valid for OV commands too?

Thank you again!
Arunvijai_4
Honored Contributor

Re: execute ping from non-root user

Hello,

Some commands should be executed from root or should have root privileges for that. Check the man page for more information.

Usually, you can execute commands with full path when logged in as normal user if it is not available in path.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Darrel Louis
Honored Contributor

Re: execute ping from non-root user

Hi,

It depends on what the permissions are on the ping command:
Below it will work for a normal user
/usr/sbin/ping
$ ll /usr/sbin/ping
-r-s--x--x 1 root bin 40960 Aug 24 1998 /usr/sbin/ping

Will not work when permissions are as below (555):
$ ping gtsm101
ping: socket: Not owner
$ ll /usr/sbin/ping
-r-xr-xr-x 1 root bin 32768 Dec 2 2003 /usr/sbin/ping

Darrel
rariasn
Honored Contributor

Re: execute ping from non-root user

Hi Alpha977,

So, this is valid for OV commands too?


$ export DISPLAY=xxxxxx:0.0

$ ovw&

Fault --> Network Connection --> Ping or Remote Ping.

rgs,

ran