LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Can We Run Raw Sockets With User Permissions (https://www.linuxquestions.org/questions/programming-9/can-we-run-raw-sockets-with-user-permissions-371756/)

fpfernando 10-10-2005 11:15 PM

Can We Run Raw Sockets With User Permissions
 
hi all,



can we run raw sockets with user permissions.....................

Wim Sturkenboom 10-11-2005 12:45 AM

Not directly. Use setuid/seteuid to change the user temporaryly. Example

fpfernando 10-27-2005 06:03 AM

ok lets say i go by ur method...



and when i open the socket it will be in root


and after that can i set back to non-root cause i need a file to be opened and the data from the socket must be written to the file..............



like


Setting To Root

Opening the Socket

Setting Back To Non -Root

Opening the file and storing the data..........


( IS THIS POSSIBLE)


All times are GMT -5. The time now is 12:48 AM.