• bbbsd

    From Aaron Thomas@1:229/426 to All on Friday, May 07, 2021 15:12:33
    I'm trying to run bbbsd on Ubuntu with this syntax:

    sudo ./bbbsd 1 1 telnet:23 httpd:80

    But then BBBSD says this:

    "Can't bind to socket. Is service already running? Using ports below 1024 require root access, see uid: paramenter"

    It works fine if I just run it on port 23 for telnet like this:

    sudo ./bbbsd 1 1 telnet:23

    But of course I want to listen for http connections too.

    Any tips?

    Thanks!
    --- Renegade vY2Ka2
    * Origin: Joey, do you like movies about gladiators? (1:229/426)
  • From Alan Ianson@1:153/757 to Aaron Thomas on Friday, May 07, 2021 13:25:18
    Hello Aaron,

    I'm trying to run bbbsd on Ubuntu with this syntax:

    sudo ./bbbsd 1 1 telnet:23 httpd:80

    But then BBBSD says this:

    "Can't bind to socket. Is service already running? Using ports below
    1024 require root access, see uid: paramenter"

    It works fine if I just run it on port 23 for telnet like this:

    sudo ./bbbsd 1 1 telnet:23

    But of course I want to listen for http connections too.

    Any tips?

    I always ran bbbsd like this..

    sudo ./bbbsd 1 1 ftpd:21 telnetd:23 httpd:80 rawd:24554:binkp quiet fork uid:alan

    There are other parameters you can use too, use the uid: of the user the BBS is running as. Adjust as needed.

    It's been a while since I ran the SW version. I'm not sure how a command like that will work in the SW version but have a try and see.

    bbbsd is a listener. You can run bbbs to poll other nodes like this..

    ./bbbs 1 1 tcpip

    Or like this to log on locally..

    ./bbbs 0

    Ttyl :-),
    Al
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Janis Kracht@1:261/38 to Aaron Thomas on Friday, May 07, 2021 16:59:52
    Hi Aaron!

    I'm trying to run bbbsd on Ubuntu with this syntax:

    sudo ./bbbsd 1 1 telnet:23 httpd:80

    I switch to user root on my ubuntu system, and use this command:

    ./bbbsd 4 15 telnetd:2030 httpd:8090 ftpd:60721 rawd:24555:binkp "quiet" "fork"
    "uid:bbs" &

    ^ (that is all one line)

    I use nodes 1, 2 and 3 for dialout lines here, that's why I start bbbsd with nodes 4-15.

    But then BBBSD says this:

    "Can't bind to socket. Is service already running? Using ports below 1024 require root access, see uid: paramenter"

    Right... you need to run that as root. You can user bbbs to the sudo group. Hope that helps :)

    Take care,
    Janis
    --- BBBS/Li6 v4.10 Toy-5
    * Origin: Prism bbs (1:261/38)
  • From Aaron Thomas@1:229/426 to Alan Ianson on Friday, May 07, 2021 19:43:04
    sudo ./bbbsd 1 1 ftpd:21 telnetd:23 httpd:80 rawd:24554:binkp quiet fork uid:alan

    I tried that, but with admin as the uid (that's the administrator user account.) It still said this:

    "Can't bind to socket. Is service already running? Using ports below 1024 require root access, see uid: paramenter"

    Note: This is running under Ubuntu 20.04 LTS on a VPS (in case that matters.)

    Thanks for your suggestion - that looks more proper - but do you have any other suggestion? It seems like a port conflict but I'm not sure why.
    --- Renegade vY2Ka2
    * Origin: Joey, do you like movies about gladiators? (1:229/426)
  • From Aaron Thomas@1:229/426 to Janis Kracht on Friday, May 07, 2021 19:47:38
    ./bbbsd 4 15 telnetd:2030 httpd:8090 ftpd:60721 rawd:24555:binkp "quiet" "f
    "uid:bbs" &

    Thanks for this tip - there's a slight variation from what Alan gave me, so I tried that (the quotes) but it still says:

    "Can't bind to socket. Is service already running? Using ports below 1024
    require root access, see uid: paramenter"

    I'm running it as the administrator (in ubuntu) but it just won't bind to port 80. It binds to port 23 with no problem.

    Could it have soemthing to do with Apache settings?
    --- Renegade vY2Ka2
    * Origin: Joey, do you like movies about gladiators? (1:229/426)
  • From Janis Kracht@1:261/38 to Aaron Thomas on Friday, May 07, 2021 20:57:08
    Hi Aaron,

    ./bbbsd 4 15 telnetd:2030 httpd:8090 ftpd:60721 rawd:24555:binkp "quiet" "f >> "uid:bbs" &

    Thanks for this tip - there's a slight variation from what Alan gave me, so I tried that (the quotes) but it still says:
    "Can't bind to socket. Is service already running? Using ports below 1024 require root access, see uid: paramenter"

    I'm running it as the administrator (in ubuntu) but it just won't bind to port
    80. It binds to port 23 with no problem.

    Could it have soemthing to do with Apache settings?

    If you are running apache on port 80, then make sure you run bbbsd's on httpd:8090 or some different port for the bbbs httpd portion.

    Hope that helps... :)

    Take care,
    Janis
    --- BBBS/Li6 v4.10 Toy-5
    * Origin: Prism bbs (1:261/38)
  • From Alan Ianson@1:153/757.2 to Aaron Thomas on Friday, May 07, 2021 19:50:38
    Re: Re: bbbsd
    By: Aaron Thomas to Alan Ianson on Fri May 07 2021 07:43 pm

    Thanks for your suggestion - that looks more proper - but do you have any other suggestion? It seems like a port conflict but I'm not sure why.

    Is that port already being used? I would try another port, or free up the one you are trying to use if you can.
    --- SBBSecho 3.14-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.2)
  • From Aaron Thomas@1:229/426 to Janis Kracht on Saturday, May 08, 2021 09:17:10
    If you are running apache on port 80, then make sure you run bbbsd's on httpd:8090 or some different port for the bbbs httpd portion.

    Thank you!
    --- Renegade vY2Ka2
    * Origin: Joey, do you like movies about gladiators? (1:229/426)
  • From Janis Kracht@1:261/38 to Aaron Thomas on Saturday, May 08, 2021 16:07:26
    If you are running apache on port 80, then make sure you run bbbsd's on
    httpd:8090 or some different port for the bbbs httpd portion.

    Thank you!

    I hope that fixed your problem :)
    --- BBBS/Li6 v4.10 Toy-5
    * Origin: Prism bbs (1:261/38)
  • From Benny Pedersen@2:230/0 to Alan Ianson on Sunday, September 12, 2021 16:22:50
    Hello Alan!

    07 May 2021 13:25, Alan Ianson wrote to Aaron Thomas:

    Hello Aaron,

    I'm trying to run bbbsd on Ubuntu with this syntax:

    sudo ./bbbsd 1 1 telnet:23 httpd:80

    But then BBBSD says this:

    "Can't bind to socket. Is service already running? Using ports below
    1024 require root access, see uid: paramenter"

    +1

    It works fine if I just run it on port 23 for telnet like this:
    sudo ./bbbsd 1 1 telnet:23

    that should not work

    But of course I want to listen for http connections too.

    Any tips?

    xinetd proxy

    then bind bbbs to highports only, so xinetd proxy low ports to highports, i did this when i did not have ipv6 at home :)

    I always ran bbbsd like this..

    sudo ./bbbsd 1 1 ftpd:21 telnetd:23 httpd:80 rawd:24554:binkp quiet
    fork uid:alan

    add 10000+portnum, and then in xinetd proxy native ports to the bbbs binded ports

    port 24554 does not need xinetd

    There are other parameters you can use too, use the uid: of the user
    the BBS is running as. Adjust as needed.

    yes if bbbs is not owned by root or even running as root there is no requirement to use root anywhere or even uid mapping

    It's been a while since I ran the SW version. I'm not sure how a
    command like that will work in the SW version but have a try and see.

    bbbsd is a listener. You can run bbbs to poll other nodes like this..

    ./bbbs 1 1 tcpip

    Or like this to log on locally..

    ./bbbs 0

    its greak to me :-)

    back to my ASUS BN50 at home

    Ttyl :-),
    Al

    -+- GoldED+/LNX 1.1.5-b20180707
    + Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/5.13.13-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Alan Ianson@1:153/757.3 to Benny Pedersen on Sunday, September 12, 2021 14:21:12
    Benny Pedersen wrote to Alan Ianson <=-

    It works fine if I just run it on port 23 for telnet like this:
    sudo ./bbbsd 1 1 telnet:23

    that should not work

    That does work except it should be telnetd:23. bbbsd listens itself to the ports given.

    sudo ./bbbsd 1 1 ftpd:21 telnetd:23 httpd:80 rawd:24554:binkp quiet
    fork uid:alan

    add 10000+portnum, and then in xinetd proxy native ports to the bbbs binded ports

    I suppose that could work but I have never used inet.d or xinetd with bbbsd.

    These days I use setcap to give bbbsd access to the lower ports so I don't need to start it as root or use sudo.

    ./bbbs 1 1 tcpip

    Or like this to log on locally..

    ./bbbs 0

    its greak to me :-)

    Yes, I need to shut down my bbbsd and pollers to add a few areas that were added recently but I have been reluctant to do that because I need to remember the paramaters to restart them. ;)

    Ttyl :-),
    Al

    ... This login session: $13.99, but for you $11.88

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.3)
  • From Benny Pedersen@2:230/0 to Alan Ianson on Tuesday, September 14, 2021 20:03:00
    Hello Alan!

    12 Sep 2021 14:21, Alan Ianson wrote to Benny Pedersen:

    It works fine if I just run it on port 23 for telnet like this:
    sudo ./bbbsd 1 1 telnet:23

    that should not work

    That does work except it should be telnetd:23. bbbsd listens itself to the ports given.

    yep its still a security problem

    sudo ./bbbsd 1 1 ftpd:21 telnetd:23 httpd:80 rawd:24554:binkp quiet
    fork uid:alan

    add 10000+portnum, and then in xinetd proxy native ports to the bbbs
    binded ports

    I suppose that could work but I have never used inet.d or xinetd with bbbsd.

    i have added my xinetd config to below gopher server at fido.junc.eu, in case friends needs help :)

    These days I use setcap to give bbbsd access to the lower ports so I don't need to start it as root or use sudo.

    ./bbbs 1 1 tcpip

    Or like this to log on locally..

    ./bbbs 0

    its greak to me :-)

    Yes, I need to shut down my bbbsd and pollers to add a few areas that were added recently but I have been reluctant to do that because I
    need to remember the paramaters to restart them. ;)

    yep today linode.junc.eu is gone, no need for this vps anymore, i succesfully did a dd o that server to my new home asus pn50, where i can mount it "mount -o loop -t ext4 ddimagefile /mnt" :)

    on windows i had hoped for rufus would do this aswell, but non bootelble ddimages is fatal, lol

    Ttyl :-),
    Al

    ... This login session: $13.99, but for you $11.88

    i need to pay less on linode.com now :)


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/5.13.16-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)