Network Troublshooting > General Networking Support in Linux

user mode permission denied to bind to socket

(1/1)

hieswarmcaquest:
Hi,
In user mode [non-root] linux machine, tried to bind a socket by using a "ioctl(iInterfaceSocket, SIOCSIFADDR, &stCommand)". I am getting error 13 -> Permission denied because of user mode. If change from usermode to kernel mode everything works fine.
I need to bind the socket in user mode only, please suggest solution for the above
while explaining the above, if I missed any information please inform, I will provide more info.
Thanks
Eswar

Navigation

[0] Message Index

Go to full version