Change UID of process/Privileged ports
I have a user on my server that would like to run an IRCD on port 23 (port 23 is his country's default IRCing port) for his IP. The only problem is, only privileged users can run daemons on ports lower than 1024. The only way I can think of to solve this problem would be to run the IRCD as root but that is extremely unsafe. Is there a way I could start the IRCD as root and switch it to another users UID while it's running?
If you have any other suggestions please let me know. Thanks. |
try sudo
the definition file would be /etc/sudoers You would need to edit this file using "visudo" try "man visudo" for usage. -- default on RH7.2 # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL |
All times are GMT -5. The time now is 05:26 PM. |