• snobs init.d

    From Nugax@1:103/705 to DOVE-Net.Synchronet_Sysops on Sat Dec 17 12:24:36 2022
    I installed the lastest abba on Debian 11.
    I download and setup the sbbs.Debian init file.

    I enabled it for default run levels. However, the telnet server doesn’t start. It does start fine if you start as user sbbs with ./sbbs d from exec dir.

    Could this possibly be due to the user it’s trying to start as?

    Thanks!
    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader
    ---
    ï¿­ Synchronet ï¿­ The ByteXchange BBS | bbs.thebytexchange.com
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nugax on Sat Dec 17 15:32:51 2022
    Re: snobs init.d
    By: Nugax to DOVE-Net.Synchronet_Sysops on Sat Dec 17 2022 12:24 pm

    I installed the lastest abba on Debian 11.
    I download and setup the sbbs.Debian init file.

    I enabled it for default run levels. However, the telnet server doesn't start. It does start fine if you start as user sbbs with ./sbbs d from exec dir.

    Could this possibly be due to the user it's trying to start as?

    Yes. As always, the log output of sbbs will tell you where to look.

    Debian 11 uses systemd, not init.d, by default. So you should be using the systemd/sbbs.service file, not the init.d/sbbs.debian file.

    The install/systemd/sbbs.service file has this important line:

    AmbientCapabilities=CAP_NET_BIND_SERVICE

    Which enabled bind capilities for whatever user starts the service (e.g. using systemctl or during boot).
    --
    digital man (rob)

    Sling Blade quote #25:
    Karl: they seen fit to put me in here and here I've been a great long while. Norco, CA WX: 61.3øF, 26.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chad Adams@1:19/37 to Digital Man on Sat Dec 17 18:24:40 2022
    Digital man

    I don’t see that line you referenced in the wiki page howto:systemd in the Debian area. The example didn’t have that line.

    Should I grab the file and add that line?

    On 17:32 17/12 , Digital Man wrote:

    Re: snobs init.d
    By: Nugax to DOVE-Net.Synchronet_Sysops on Sat Dec 17 2022 12:24 pm

    I installed the lastest abba on Debian 11.
    I download and setup the sbbs.Debian init file.

    I enabled it for default run levels. However, the telnet server doesn't start. It does start fine if you start as user sbbs with ./sbbs d from exec dir.

    Could this possibly be due to the user it's trying to start as?

    Yes. As always, the log output of sbbs will tell you where to look.

    Debian 11 uses systemd, not init.d, by default. So you should be using the systemd/sbbs.service file, not the init.d/sbbs.debian file.

    The install/systemd/sbbs.service file has this important line:

    AmbientCapabilities=CAP_NET_BIND_SERVICE

    Which enabled bind capilities for whatever user starts the service (e.g. using systemctl or during boot).
    --
    digital man (rob)

    Sling Blade quote #25:
    Karl: they seen fit to put me in here and here I've been a great long while. >Norco, CA WX: 61.3°F, 26.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs >--- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader
    --- SBBSecho 3.15-Linux
    * Origin: The ByteXchange BBS | bbs.thebytexchange.com (1:19/37)
  • From Digital Man@1:103/705 to Chad Adams on Sat Dec 17 17:17:20 2022
    Re: Re: snobs init.d
    By: Chad Adams to Digital Man on Sat Dec 17 2022 06:24 pm

    Please put your replies *below* the quoted text.

    Digital man

    I don't see that line you referenced in the wiki page howto:systemd in the Debian area. The example didn't have that line.

    True. The howto has it and explains its purpose.

    Should I grab the file and add that line?

    If you're not building the 'setcap' target, yes.

    Yes. As always, the log output of sbbs will tell you where to look.

    You didn't state what the log output of sbbs is indicating, so this is all just guess work at this point.
    --
    digital man (rob)

    Breaking Bad quote #4:
    Tagging trees is a lot better than chasing monsters. - Hank Schrader
    Norco, CA WX: 56.6øF, 30.0% humidity, 0 mph NNE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chad Adams@1:19/37 to Digital Man on Sat Dec 17 19:49:37 2022
    On 19:17 17/12 , Digital Man wrote:

    Re: Re: snobs init.d
    By: Chad Adams to Digital Man on Sat Dec 17 2022 06:24 pm

    Please put your replies *below* the quoted text.

    Digital man

    I don't see that line you referenced in the wiki page howto:systemd in the Debian area. The example didn't have that line.

    True. The howto has it and explains its purpose.

    Should I grab the file and add that line?

    If you're not building the 'setcap' target, yes.

    Yes. As always, the log output of sbbs will tell you where to look.

    You didn't state what the log output of sbbs is indicating, so this is all just guess work at this point.
    --
    digital man (rob)

    Breaking Bad quote #4:
    Tagging trees is a lot better than chasing monsters. - Hank Schrader
    Norco, CA WX: 56.6°F, 30.0% humidity, 0 mph NNE wind, 0.00 inches rain/24hrs >--- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)


    The log didn’t have any info that I could find. I was able to get it to work by just adding the line you referenced- but that line was not in the example on the wiki. I believe the actual issue was the user and using systemd really resolved it.

    One last question, sorry to take up your time.

    How can I move sbbs to use a separate file rather than logging to syslog? Thanks.
    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader
    --- SBBSecho 3.15-Linux
    * Origin: The ByteXchange BBS | bbs.thebytexchange.com (1:19/37)
  • From Digital Man@1:103/705 to Chad Adams on Mon Dec 19 12:38:52 2022
    Re: Re: snobs init.d
    By: Chad Adams to Digital Man on Sat Dec 17 2022 07:49 pm

    I don't see that line you referenced in the wiki page howto:systemd in the Debian area. The example didn't have that line.

    True. The howto has it and explains its purpose.

    Should I grab the file and add that line?

    If you're not building the 'setcap' target, yes.

    Yes. As always, the log output of sbbs will tell you where to look.

    You didn't state what the log output of sbbs is indicating, so this is all just guess work at this point.

    The log didn't have any info that I could find.

    It would most likely contain bind errors.

    I was able to get it to work
    by just adding the line you referenced- but that line was not in the example on the wiki. I believe the actual issue was the user and using systemd really resolved it.

    From https://wiki.synchro.net/howto:systemd:

    NOTE:
    If you're running any kind of recent (last 2yrs+) systemd, to avoid the use of setcap to run 'sbbs' as a non-root user, just put this line in the [Service] section of your sbbs.service file: AmbientCapabilities=CAP_NET_BIND_SERVICE

    One last question, sorry to take up your time.

    How can I move sbbs to use a separate file rather than logging to syslog? Thanks.

    Read this: https://wiki.synchro.net/config:nix#logging
    --
    digital man (rob)

    Sling Blade quote #7:
    Karl: I don't reckon the Good Lord would send anybody like you to Hades.
    Norco, CA WX: 61.7øF, 38.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)