user mode permission denied to bind to socket

Discussion in 'General Networking Discussion' started by hieswarmcaquest, May 3, 2011.

  1. hieswarmcaquest

    hieswarmcaquest

    Joined:
    May 3, 2011
    Messages:
    3
    Likes Received:
    0
    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
     
    hieswarmcaquest, May 3, 2011
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.