This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

binding to a port lower than 1024

Old posts that have not been replied to for several years.
Locked
t
tami
Voice
Posts: 13
Joined: Tue Feb 05, 2002 8:00 pm

binding to a port lower than 1024

Post by tami »

well, my eggdrop cannot be run by root, so this is my only option...

so i have this script that runs like this...

listen [portnumber]

it's going to be listening to a specific host which can access a very very limited number of ports (outgoing.. for some reason, telnet/23 doesn't work, but ssh/22 and http/80 do... so i am going to see if i could do it that way instead).

therefore, i need to somehow bind to the port as a root user (or figure out how to get my eggdrop execute as root).

1. is there a possibility to execute the eggdrop as root?
2. if not, how can i modify the tcl code to execute this specific tcl script as root (just to bind to the specified port) and then to terminate the root connection and continue using my eggdrop as a regular user?

thanks.
M
Moonster
Halfop
Posts: 95
Joined: Wed Nov 13, 2002 5:39 pm
Location: Manchester NH USA
Contact:

Post by Moonster »

Eggdrop will not run as root plan and simple. Running an Eggdrop in root mode (which Older versions could I believe) is a VERY BAD idea. So the newer versions were made to DIE when they found they were being attempted to run as root. Look into getting help for your particular OS and Add a User and use that User to make your Eggdrop. Then you should be able to do the 1024+ port assignments.
"Knowledge is Power"
BeastNH/Moonster on Undernet/EFnet IRC Network
T
ThEdGE

Post by ThEdGE »

Hi tami Image
Locked