From: "Денис Смирнов" <mithraen@freesource.info>
To: community@lists.altlinux.org
Subject: Re: [Comm] Права в /var/spool/asterisk/monitor
Date: Thu, 11 Jul 2013 03:42:40 +0400
Message-ID: <20130710234240.GA22550@mw.mithraen.ru> (raw)
In-Reply-To: <CAKyKsW_=w9k+oZXCcmH45TX4y+Sp0MssKPaxApQi98MQHRVucw@mail.gmail.com>
On Wed, Jul 10, 2013 at 11:32:36AM +0400, Павел Цильке wrote:
> Хотелось бы узнать, как можно сделать так, чтобы файлы и каталоги, которые
> asterisk создает в /var/spool/asterisk/monitor были доступны на запись
> группе пользователей pbxadmin?
> Версия asterisk 1.8.22.0-alt1 из Сизифа
Права сейчас должны быть на создаваемые файлы -- _asterisk:pbxadmin 0644.
Это так?
Чтобы сменить права для создаваемых файлов (скажем использовать 0660, что
было бы корректнее), боюсь придется патчить астериск. Если напишите патч с
возможностью настройи через asterisk.conf, по аналогии с существующей там
опцией astctlpermissions -- буду рад включить его в наши сборки.
В качестве хака могу предложить использовать скрипт, запускающийся после
создания записи (см. документацию на Monitor или MixMonitor, смотря что вы
используете), и уже в этом скрипте выполнить chmod. Так как скрипт будет
выполняться астериском от _asterisk, у него будет возможность изменять
права доступа.
--
С уважением, Денис
http://mithraen.ru/
prev parent reply other threads:[~2013-07-10 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 9:30 ` Viacheslav Dubrovskyi
2013-07-10 23:42 ` Денис Смирнов [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130710234240.GA22550@mw.mithraen.ru \
--to=mithraen@freesource.info \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git