[SUMMARY]: permission denied on socket

From: Richard Cove <Richard.Cove_at_alphawest6.com.au>
Date: Sat Oct 13 2001 - 22:33:36 EDT
This is a multi-part message in MIME format.

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks to Casper Dik for quick reply, sorry for the slow summary but I have
been on holidays this week.


Casper's reply,
------
For ping/.traceroute and such, those need to be set-uid root to work,

For the others, check the permissions on the /dev/ entries for sockets
(/dev/tcp, /dev/tcp6, /dev/udp, /dev/udp6)

Those all need to be mode 666 (but not /dev/ip).
-------
The problem turned out to be the /dev/udp having the world write removed
restoring that got things working again.
I suspect that running the fix-modes program caused this but analyais with
Casper has verified that I was using the correct verion, must have been a
one off glitch.

Thanks also to Lieven Marchand who suggested permissions on TCP

Here are the correct permissions for networking

/> ls -lL /dev/ip /dev/tcp* /dev/udp*
crw-r--r--   1 root     sys        3,  0 Jun  1 13:58 /dev/ip
crw-rw-rw-   1 root     sys       42,  0 Jun  1 13:58 /dev/tcp
crw-rw-rw-   1 root     sys      146,  1 Jun  1 13:58 /dev/tcp6
crw-rw-rw-   1 root     sys       41,  0 Jun  1 13:58 /dev/udp
crw-rw-rw-   1 root     sys      145,  1 Jun  1 13:58 /dev/udp6



-----Original Message-----
From: Richard Cove [mailto:Richard.Cove@alphawest6.com.au]
Sent: Saturday, October 06, 2001 1:34 PM
To: 'sunmanagers@sunmanagers.org'
Subject: permission denied on socket


I am getting permission denied on socket with any not root user Solaris 8
Ultra 10. I have searched the archives and Sunsolve, but the only mention of
this is this post from Steve Campbell in December. This describes my exact
problems.
Does anyone have any ideas?


--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

Alphawest 6 Disclaimer
------------------------------------------------------------------------------------------------------------------------------------------
If this communication is not intended for you and you are not an authorised
recipient of this email you are prohibited by law from dealing with or relying
on the email or any file attachments. This prohibition includes reading, printing,
copying, re-transmitting, disseminating, storing or in any other way dealing or acting
in reliance on the information.
If you have received this email in error, we request you contact Alphawest 6
immediately by returning the email to postmaster@alphawest6.com.au and
destroy the original. This email is confidential and may contain privileged client
information. Alphawest 6 has taken reasonable steps to ensure the accuracy
and integrity of all its communications, including electronic communications, but
accepts no liability for materials transmitted.
------------------------------------------------------------------------------------------------------------------------------------------


--------------InterScan_NT_MIME_Boundary--
Received on Sun Oct 14 03:33:36 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:33 EDT