November 21, 2024, 05:07:09 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: user mode permission denied to bind to socket  (Read 6347 times)

Offline hieswarmcaquest

  • New Member
  • Posts: 2
user mode permission denied to bind to socket
« on: May 03, 2011, 03:58:03 PM »
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