Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a socket with a non-Administrator ID

Status
Not open for further replies.

mckda02

Programmer
Nov 5, 2001
8
US
Hello,
I have written a small Java Application that basically opens a socket and connects to a host machine. If I log into Windows XP as Administrator or with a user that is part of the Administrator group, everything works fine. If the user does not have administrator rights, I get the error "java.net.SocketException: Connection reset by peer"

Any ideas? Could there be a user right I need to grant the non-admin user ?????

Any help is greatly appreciated.
 
Sounds more like the user rights on the remote box. Check that the user exists over there and has the rights to the share.

Jon

There is much pleasure to be gained from useless knowledge. (Bertrand Russell)
 
True from Win2k -- on...

SYMPTOMS
A Socket or WSASocket call that specifies the SOCK_RAW socket type fails with the following Winsock error message (10013 WSAEACCES) if the user is a non-administrator who is logged onto a Windows NT 4.0 or Windows 2000 system:

"An attempt was made to access a socket in a way forbidden by its access permissions."
STATUS
This behavior is by design.
MORE INFORMATION
In Windows 2000, there is no way to disable this security check. Access to Raw Sockets is granted on a per-transport basis. For the address family AF_INET, only administrators have the access necessary to create Raw Sockets.

See:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top