So, I wrote a shell script in php which executes
chmod 755 on /sbbs/exec/makeuser but still get ERROR 13, not sure what
MAKEUSER v1.10-Linux - Adds User to Synchronet User Database !ERROR 13 adding new user record Loading configuration files from /sbbs/ctrl
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?
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
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?
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 25 |
Nodes: | 8 (0 / 8) |
Uptime: | 139:59:29 |
Calls: | 1,905 |
Calls today: | 1 |
Files: | 11,079 |
Messages: | 935,051 |