Networking - socket_create PROBLEM

checked

Well-Known Member
May 3, 2004
54
0
156
I am on Redhat 9, through SSH I am trying to run command line PHP networking code. My program uses Sockets but as soon as I code executes below line:

PHP:
$socket = socket_create(AF_INET, SOCK_RAW, 1);
it shows below Error:

Warning: socket_create() Unable to create socket [1]: Operation not permitted in abc.php on line 4

Error shows that this Operation not permitted. Can anyone advise why this warning is comming.

NOTE: I have tried to run the above code from root SSH and it's running fine. Now can anyone know why it's displaying warning when I run the code from some other user's account.

Waiting for reply !
 

akhthar

Member
May 4, 2004
23
0
151
bangalore
Hi,

Other users are using jailshell??
then change it to bash