Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raw sockets privilege for normal user

I have been trying to use the raw socket in my machine under windows xp sp2. since there is no admin privilege for my user i am getting error while trying to create a sock_raw socket. does anyone know the specific privilege under Active directory or group policy so that i can ask our administrator to grant me the same?

thanks in advance, Hari

like image 687
Hari Avatar asked Jun 28 '26 17:06

Hari


2 Answers

According to MSDN:

[O]nly members of the Administrators group can create sockets of type SOCK_RAW on Windows 2000 and later.

You need to be a member of the Administrators group. There is no specific Active Directory privilege, you just need to be in the group.

like image 67
Dean Harding Avatar answered Jul 01 '26 05:07

Dean Harding


For Windows 2003 Microsoft notes this, however XP SP2 probably disables it.

AllowUserRawAccess

Key: Tcpip\Parameters

Value Type: REG_DWORD—Boolean

Valid Range: 0, 1 (False, True)

Default: 0 (False)

Description: This parameter controls access to raw sockets. If true, non - administrative users have access to raw sockets. By default, only administrators have access to raw sockets.

like image 29
Steve-o Avatar answered Jul 01 '26 03:07

Steve-o



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!