Well, I can assure you the user exists. Since version 11 in fact (the passed file on the box says):
www:*:80:80::0:0:World Wide Web Owner:/usr/local/www/apache24/data:/bin/tcsh
I even gave it a temp valid shell on the account for testing…
I have the asterisk server running as user www. I should mention that freepbx 12 was fine - but I recently updated to 13 and these problems cropped up.
Advanced Settings > System Setup > System Web User I believe…
From what he quoted it looks like the problem is that is actually does but can’t properly look it up???
I wonder if there might not be a stray space in there or something similar and it’s actually trying to look up "www " instead of “www”… Maybe the other code that uses this setting is more tolerant to something like this (WriteConfig appears to be something new)…
@iansouth12, could you post a screen capture and maybe delete and retype the user in Advanced Settings > System Setup > System Web User?
the user exists in /etc/passwd. Has been there a long time. The settings in /etc/amportal.conf has existed there a long time. Always been working. I do not see anything in the FreePBX advanced settings that look wrong (or obviously wrong). Again the settings in the flat files have been working for a few years now under 11 and 12. And the amportal.conf seems right. Has www defined.
I made sure everything had the right ownerships/perms under /usr/local/etc/www/apache24/data/freepbx - and /usr/local/etc/asterisk - I checked a thing or two in /usr/local/sbin which ended up being symlinks to stuff in /usr/local/etc/asterisk and those perms looked ok. Unless I’m missing something (I’m sure I am)
Do you have the /etc/pwd.db and /etc/spwd.db files mentioned in that thread
?
That’s apparently a BSD thing and I wonder if you might have similar problem (the files were no longer in sync) to what that person had and if the fix might be the same…