Ping command not working as other user and getting below error
Error: ping: icmp open socket: Operation not permitted
Solution : 1. Login as Root User
2. cd /bin/
3. type ll you will get like 4th point
4. drwxr-xr-x 2 root root 4096 Aug 25 16:59 /bin
5. If you didnt get this chmod and give permission
6. After this type this below command as Root user
7. chmod u+s ping
8. Finally you will get like this
9. [root@training bin]# ll
-rwsrwxrwx 1 root root 33272 Mar 15 2007 ping
10. Then go to su - sunserver
11. Type ping (IP Address)
64 bytes from sunserver.chainsys.com (192.168.2.221): icmp_seq=0 ttl=64 time=1.36 ms
64 bytes from sunserver.chainsys.com (192.168.2.221): icmp_seq=1 ttl=64 time=0.212 ms
64 bytes from sunserver.chainsys.com (192.168.2.221): icmp_seq=2 ttl=64 time=0.207 ms
No comments:
Post a Comment