• ERROR 13

    From Mortifis@VERT/ALLEYCAT to All on Sunday, October 07, 2018 12:04:57
    So, I wrote a shell script in php which executes system("/sbbs/exec/makeuser args 2>&1", $retval); runs perfectly from the command line and creates a user on the board, but when I run the script from a web script it returns ERROR 13.
    I did
    chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what ERROR 13 is

    $retval returned:

    MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl

    Any ideas?

    ---
    þ Synchronet þ Twisted Truckers BBS web asmf-etrucker.com:81 telnet asmf-etrucker.com
  • From echicken@VERT/ECBBS to Mortifis on Sunday, October 07, 2018 11:46:15
    Re: ERROR 13
    By: Mortifis to All on Sun Oct 07 2018 12:04:57

    So, I wrote a shell script in php which executes

    chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what

    Is this because your PHP script runs as a different user than your BBS, and doesn't have permission on (most) files in your /sbbs directory tree?

    MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl

    Your script is probably running as a user that can't write to the Synchronet user database.

    How is this script being triggered? What's its purpose?

    I'm sure there are plenty of ways to fix this, but I'm wondering if it's something that could be done within your Synchronet install rather than by some external thing.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Mortifis@VERT/ALLEYCAT to All on Sunday, October 07, 2018 12:54:19
    So, I wrote a shell script in php which executes system("/sbbs/exec/makeuser args 2>&1", $retval); runs perfectly from the command line and creates a user on the board, but when I run the script from a web script it returns ERROR 13.
    I did
    chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what ERROR 13 is

    $retval returned:

    MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl

    Any ideas?

    Found a simple fix, error 13 is Permission Denied, just changed the user:group apache2 runs as to the same user:group sbbs runs as :/

    ---
    þ Synchronet þ Twisted Truckers BBS web asmf-etrucker.com:81 telnet asmf-etrucker.com
  • From Mortifis@VERT/ALLEYCAT to echicken on Sunday, October 07, 2018 15:45:23
    Re: ERROR 13
    By: Mortifis to All on Sun Oct 07 2018 12:04:57

    So, I wrote a shell script in php which executes

    chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what

    Is this because your PHP script runs as a different user than your BBS, and doesn't have permission on (most) files in your /sbbs directory tree?

    MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl

    Your script is probably running as a user that can't write to the Synchronet user database.

    How is this script being triggered? What's its purpose?

    I'm sure there are plenty of ways to fix this, but I'm wondering if it's something that could be done within your Synchronet install rather than by some external thing.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com

    Yes, that is exactly what it was, I was trying some work-arounds but ended up running the web server as the same user:group as sbbs which fixed the issue. The purpose? well, just for convenience. I built a commercial truck transportation management suite and have always included an email account under SBBS but have been adding it manually for some years, just thought it would be nice to automate the process :) the web server runs on a different system than SBBS so a typical system call wasn't feasible without first passing the arguments from one server to another and triggering a script on the SBBS system. It seems to be working great now, thanks :) The final product, at the request of a couple of my customers who do not like cloud based systems, is to have an in-house system at their location so having it running on a Raspberry Pi seemed a good choice :)

    ---
    þ Synchronet þ Twisted Truckers BBS web asmf-etrucker.com:81 telnet asmf-etrucker.com
  • From Digital Man@VERT to Mortifis on Sunday, October 07, 2018 13:53:24
    Re: ERROR 13
    By: Mortifis to All on Sun Oct 07 2018 12:04 pm

    So, I wrote a shell script in php which executes system("/sbbs/exec/makeuser args 2>&1", $retval); runs perfectly from the command line and creates a user on the board, but when I run the script from a web script it returns ERROR 13.
    I did
    chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what ERROR 13 is

    $retval returned:

    MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl

    Any ideas?

    Error 13 is permission denied. Most likely, the user you're running makeuser as is not the same user you're running the BBS as.

    digital man

    This Is Spinal Tap quote #36:
    Bobbi Flekman: Money talks, and bullshit walks.
    Norco, CA WX: 75.4øF, 53.0% humidity, 13 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net