Open Source Training Seminar FreePBX Paid Support

Ticket #1626 (closed Bugs: fixed)

Opened 2 years ago

Last modified 1 year ago

permissions wrong on /etc/amportal.com /etc/asterisk/asterisk.conf after amportal chown

Reported by: rsts/e Assigned to: gregmac
Priority: minor Milestone: 2.3
Component: Installation Version: 2.3-branch
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

amportal chown and imp_install leave files containing passwords world readable

Change History

01/03/07 00:44:58 changed by gregmac

  • owner set to gregmac.
  • version changed from 2.2rc3 to SVN-HEAD.
  • milestone set to 2.3.

install_amp will now set the default permissions of amportal.conf to 0640 on a new install (r3512). It will not modify it for an existing install because there's no way to reliably figure out who owns it, what user is running asterisk/apache etc..

The files in /etc/asterisk/ are a bit more complex because of the way the installer works, so will have to wait for #1497.

Either way, amportal chown will not change world permissions, just group permissions - so if you remove world permissions (a good idea) then it will not add them back.

01/08/07 11:46:49 changed by

  • milestone deleted.

Milestone 2.3 deleted

01/08/07 11:54:45 changed by vgster

  • milestone set to 2.3.

03/15/07 19:39:22 changed by vgster

  • engine_version changed.
  • svn_rev changed.

#1746 is caused by this.

05/01/07 02:51:29 changed by vgster

06/10/07 00:49:29 changed by vgster

This doesnt appear to be an issue with 2.3. I've tried it with a couple of clean installs and amportal.conf is 640 asterisk:asterisk.

06/10/07 23:13:01 changed by vgster

Hmm I was wrong. When amportal.conf is first copied in it's root:asterisk but then once updated its root:root.

06/25/07 03:48:32 changed by p_lindheimer

  • version changed from SVN-HEAD to 2.3-branch.

06/26/07 15:23:00 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

from quick scan and from my memory of some past changes, isn't this fixed at this point? If not, reopen with explicit instructions on what still needs to be addressed.

06/26/07 15:58:06 changed by vgster

  • status changed from closed to reopened.
  • resolution deleted.

When doing the install_amp after amportal.conf has been created it needs setting to chown asterisk otherwise the rest of the install_amp will fail.

However with 2.3 I've tried a few installs from scratch and get

Creating new /etc/amportal.conf
PHP Notice:  Undefined variable:  asterisk_user in /usr/src/freepbx/install_amp on line 616
Enter your USERNAME to connect to the 'asterisk' database:
 []
PHP Notice:  Undefined variable:  asterisk_pass in /usr/src/freepbx/install_amp on line 623
Enter your PASSWORD to connect to the 'asterisk' database:
 []

06/26/07 16:08:57 changed by vgster

Also

PHP Notice:  Undefined variable:  webroot in /usr/src/freepbx/install_amp on line 648
Enter the path to use for your AMP web root:

PHP Notice:  Undefined variable:  ampbin_dir in /usr/src/freepbx/install_amp on line 687
Enter directory in which to store AMP executable scripts:

PHP Notice:  Undefined variable:  ampbin_di in /usr/src/freepbx/install_amp on line 690
mkdir: too few arguments

PHP Notice:  Undefined variable:  ampsbin_dir in /usr/src/freepbx/install_amp on line 705
Enter directory in which to store super-user scripts:

amportal.conf perms seem ok with latest 2.3

07/11/07 19:41:41 changed by p_lindheimer

  • status changed from reopened to closed.
  • resolution set to fixed.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads