Page 1 of 1

OOPS

PostPosted: Thu Aug 24, 2017 12:17 pm
by uselessinfoguru
so I did a bad thing. chmod -R 777 /var and chmod -R 777 /
I now have root access again by logging into single user mode and setting the correct permissions for the Home, usr, root, etc, and var directories
I do not have remote SSH or FTP access, and the system is not recording, even tho i did chown -R asterisk /var/spool/asterisk and chmod -R 777 /var/spool/asterisk

any help would be appreciated

correction there are recordings from today in the /var/spool/monitor/ directory -in.wav and -out.wav files, but they are not moving to monitorDONE/ORIG or monitorDONE/MP3

Re: OOPS

PostPosted: Fri Aug 25, 2017 8:59 am
by felipecl
Fix ssh login:
#cd /etc/ssh/
#chmod 600 moduli
#chmod 644 ssh_config
#chmod 644 ssh_host_dsa_key.pub
#chmod 644 ssh_host_key.pub
#chmod 644 ssh_host_rsa_key.pub
#chmod 600 ssh_host_dsa_key
#chmod 600 ssh_host_key
#chmod 600 ssh_host_rsa_key
#chmod 640 sshd_config
/etc/init.d/sshd start
(and/or)
/etc/init.d/sshd reload

With this you arrange the remote access by ssh. I hope to see you.

Re: OOPS

PostPosted: Wed Aug 30, 2017 10:24 am
by uselessinfoguru
ok, luckily, the databases weren't corrupt, so ran ADMIN_backup.pl, installed new from vicibox 7.0.3, restored the backup, since the file and folder permissions do not carry over with backup and restore, everything worked beautifully.