Sean Hogan
Member
- Joined
- Feb 10, 2015
- Messages
- 34
- Reaction score
- 0
I reinstalled it, and did not install CSF.
I don't see any permissions errors.
I don't see any permissions errors.
try this:
chattr -i /etc/asterisk/manager.conf
chown asterisk.asterisk /etc/asterisk/manager.conf.
and report any errors
also separately run this:
lsattr /etc/asterisk/manager.conf
and report the response.
ok it looks like somewhere along the lines the "immutible" flag was enabled for those files you are getting errors on.
the flag needs to be removed as that prevents even root from modifying a file.
run this:
chattr -R -i /etc/asterisk
and then retry the asterisk reload.
FYI: The immutable flag was set on some files including manager.conf because of concerns that a reported FreePBX vulnerability was potentially exposing critical system files to manipulation by individuals that surreptitiously gained asterisk user access to servers via the FreePBX GUI. With asterisk user permissions and no firewall in place, it's incredibly easy to modify manager.conf to authorize complete control of and remote access to an Asterisk server.
But.. that would make it difficult to make legitimate changes to the conf files. maybe a lock/unlock script would be the best solution?
lsattr /etc/asterisk
chattr -i /etc/asterisk/manager.conf
# make changes desired
chattr +i /etc/asterisk/manager.conf
amportal restart
Not hard actually...
Code:chattr -i /etc/asterisk/manager.conf # make changes desired chattr +i /etc/asterisk/manager.conf amportal restart
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.