[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ping my modem........



On Tuesday 28 August 2007 14:49, Jeff D shared this with us all:
>--} iOn Tue, 28 Aug 2007, Charlie wrote:
>--}
>--} > On Tuesday 28 August 2007 13:33, Ron Johnson shared this with us all:
>--} >> --} On 08/27/07 22:21, Charlie wrote:
>--} >> --} > Never having used ping, and not really understanding the man
> page for --} >> it:- --} >
>--} >> --} > When I ping my modem:
>--} >> --} >
>--} >> --} > what command/option/s should I use?
>--} >> --} > Is the following a normal reply from a satellite modem to
> ping:- --} >> --} >
>--} >> --} > ping: sendmsg: Operation not permitted
>--} >> --} > ping: sendmsg: Operation not permitted
>--} >> --} > ping: sendmsg: Operation not permitted
>--} >> --} > ping: sendmsg: Operation not permitted
>--} >> --} > ping: sendmsg: Operation not permitted
>--} >> --}
>--} >> --} What's a *satellite* modem?
>--} >> --}
>--} >> --} Are you referring to POTS modem, cable modem or ADSL modem?
>--} >> --}
>--} >> --} Broadband *modems* do not have IP addresses.  (But they do have
> MAC --} >> --} addresses.)  Only if it is a combo modem-router will it have
> an IP --} >> --} address.
>--} >
>--} > A modem that connects to the Ipstar satellite for the Internet
> connection, --} > through a satellite dish on my roof. I suppose the don't
> have these sort of --} > things other than in the bush of Australia.
>--} >
>--} > But thanks anyway.
>--} > Charlie
>--} >
>--} > --
>--}
>--} It sounds like your ping command is not setuid root.  You can check by
>--} doing a ls -la /bin/ping , normally the permissions will be -rwsr-xr-x
>--} owned by root:root.  The s in there stands for setuid and since its
> owned --} by root, it gets executed as root, which you need to send out
> pings as a --} normal user.  To change it you can :
>--} sudo chmod 4755 /bin/ping
>--} after that you should be able to use ping as a normal user.
>--}
>--} hth
>--} jeff

Thank you for your reply

This command showed:-

$ ls -la /bin/ping
-rwxr-xr-x 1 root root 30788 2007-07-17 02:00 /bin/ping

Used your command as suggested:-

# chmod 4755 /bin/ping

Then to check:

# chmod -v 4755 /bin/ping
mode of `/bin/ping' retained as 4755 (rwsr-xr-x)

Then pinged again and received:

ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

But it might require a reboot to make ping work properly?

Thank you,
Charlie

-- 
Registered Linux User:- 329524
+++++++++++++++++++++++++++++++++++
Getting bored is not allowed. -------------------- ELOISE
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Debian - Just the best way to do magic.



Reply to: