Open Source Training Seminar FreePBX Paid Support

Ticket #2606 (closed Feature Requests: fixed)

Opened 9 months ago

Last modified 2 months ago

chown_asterisk device ownerships

Reported by: vieri Assigned to: p_lindheimer
Priority: minor Milestone: 2.5
Component: Core Version:
Keywords: Cc:
Confirmation: Confirmed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

I'd like to suggest more flexibility as to /dev ownerships. Some systems may require/prefer, say, mISDN to be root:dialout and have asterisk user as part of the dialout group. Maybe one could simply specify user:group in /etc/amportal.conf with something like:

AMPDEVUSER=root AMPDEVGROUP=dialout

in freepbx_engine, chown_asterisk(): ...

	# Ensure that various hardware devices are owned correctly.
	[ -e /dev/zap ] && chown -R $AMPDEVUSER:$AMPDEVGROUP /dev/zap 
	[ -e /dev/capi20 ] && chown -R $AMPDEVUSER:$AMPDEVGROUP /dev/capi20
	[ -e /dev/misdn ] && chown -R $AMPDEVUSER:$AMPDEVGROUP /dev/misdn
	[ -e /dev/mISDN ] && chown -R $AMPDEVUSER:$AMPDEVGROUP /dev/mISDN
	[ -e /dev/dsp ] && chown -R $AMPDEVUSER:$AMPDEVGROUP /dev/dsp

...

Change History

01/12/08 12:58:44 changed by p_lindheimer

  • confirmation changed from Unreviewed to Confirmed.
  • version deleted.
  • milestone changed from Cut Line to 3.0.

we can revisit the ownership issue in the future. It requires asterisk:asterisk today because there are files that asterisk creates with a 600 permission so groups don't cut it. I don't know if they have made provisions to change that yet - that would be the key to start making the move to a more proper config like apache not having to be asterisk.

07/17/08 05:25:47 changed by lazytt

  • milestone changed from 2.5 to 3.0.

07/17/08 07:36:31 changed by p_lindheimer

  • milestone changed from 3.0 to 2.5.

lazytt,

let's still leave this as a 2.5 candidate. Don't know whether anyone will get to it or not but it is fairly straight forward so may still make it.

07/19/08 09:19:53 changed by p_lindheimer

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

r6060

Added the following variables and defaults to freepbx_engine so custom user or groups can be configured in amportal.conf:

  • AMPDEVUSER=asterisk
  • AMPDEVGROUP=asterisk
  • AMPASTERISKUSER=asterisk
  • AMPASTERISKGROUP=asterisk
  • AMPASTERISKWEBUSER=$AMPASTERISKUSER
  • AMPASTERISKWEBGROUP=$AMPASTERISKGROUP

07/25/08 11:56:55 changed by p_lindheimer

(In [6183]) fixes #2946 and adds a few more missing changes re #2606

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads