Re: [Asterisk-Users] Voicemail file permissions

2005-08-18 Thread hugolivude
Thanks for the ideas Chris; most appreciated.

Hugh

On 8/18/05, Chris Coulthurst [EMAIL PROTECTED] wrote:
 If you want to use samba for their checking, you COULD use smb.conf to
 control which users get in to which folders.  You might make
 /var/spool/asterisk/voicemail/default readable by all, and make [username]
 entries in smb.conf to add 'admin user' accesses to only their voicemail
 directory tree.  I know it is doable, but I can't remember all the commands
 in samba off-hand to do it.
 
 Even if this is not EXACTLY the best way to do it, at least it gives you a
 couple ideas to manipulate...
 
 One thing you might think about is using a script to map voicemail
 extensions to known samba usernames/groups, and have the script chown the
 specific directories to that samba username and group.  I don't know what
 variables are passed (if any) from Comedian mail, but it doesn't really
 matter, since that script could read a list of ALL vm/username mappings each
 time voicemail is left, checked, deleted, and make a change to all of the vm
 users at the same time.  Some would be redundant, but its not exactly eating
 up a ton of cpu cycles to chown users.
 
 Chris Coulthurst
 [EMAIL PROTECTED]
 
 - Original Message -
 From: hugolivude [EMAIL PROTECTED]
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 asterisk-users@lists.digium.com
 Sent: Wednesday, August 17, 2005 5:56 PM
 Subject: Re: [Asterisk-Users] Voicemail file permissions
 
 
 Sorry, not following you at all.  Perhaps it's a lack of Linux knowledge.
 
 I understood that Asterisk puts voicemails in
 var/spool/asterisk/voicemail/mailbox/###/INBOX.  Are you suggesting
 that I could configure that to be a network drive on each user's
 computer?  If so wouldn't that introduce all kinds of complications
 like what to do when their computer is off?
 
 Thanks for taking the time to respond though, most appreciated.
 
 Howard
 
 On 8/17/05, Tzafrir Cohen [EMAIL PROTECTED] wrote:
  On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:
 Is there a way around this w/o giving everyone root privileges!
   
Do you want to allow every user to delete another user's voicemail?
   
If not, how do you sync voicemail users and samba users?
  
   I want each user to see, read and write (delete) their own voicemail
   ONLY (i.e. a user shouldn't be able to listen to someone elses
   voicemails).  I gave each user an account on the Asterisk box and
   limited their access to their mailbox folder only.
 
  So don't waste your time on saving the voicemail on Asterisk. Save it on
  a specific folder in an imap server on the user's home directory.
 
  If you use a decent mail client, getting notifications for new mails in
  that folders, deleting them, playing them, and whatever should be easy.
 
  On the Asterisk side you only need to keep voicemail config in sync.
  Maybe it would be easier to just forward every mailbox nnn to
  [EMAIL PROTECTED] and use an aliases file to do the real forwarding. That
  way you keep the emails away from Asterisk's config.
 
  The downside: no message-waiting indicator.
 
  --
  Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
  http://tzafrir.org.il |   | a Mutt's
  [EMAIL PROTECTED] |   |  best
  ICQ# 16849755 |   | friend
  ___
  Asterisk-Users mailing list
  Asterisk-Users@lists.digium.com
  http://lists.digium.com/mailman/listinfo/asterisk-users
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread Tzafrir Cohen
On Tue, Aug 16, 2005 at 02:40:36PM -0400, hugolivude wrote:
 I'm running RedHat 9 with a TDM400 (2FXO, 2FXS).  
 
 I'd like to give my Asterisk users the option of cleaning up their
 voicemail mailbox from their Windows PCs.  I set up Samba and added
 all the users with restricted access to their mailbox only, but here's
 the problem:
 
 The voicemail .wav files that Asterisk creates have root as both owner
 and group.  
 Since the users do not have root privileges, they can't do
 much with the files.  BTW I'm not sure why the voicemail .wav files
 have root as both owner and group because I followed the instructions
 for running Asterisk other than root (see
 http://www.voip-info.org/wiki-Asterisk+non-root).

Which is a good thing regardless.

 
 Is there a way around this w/o giving everyone root privileges!

Do you want to allow every user to delete another user's voicemail?

If not, how do you sync voicemail users and samba users?

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread hugolivude
Great idea, thanks!  I'd never heard of externnotify.  I shudder to
think of how many other cool features I'm missing!  I'll let u know
how it goes.

Cheers,
Hugh

On 8/16/05, Chris Coulthurst [EMAIL PROTECTED] wrote:
 My suggestion would be, use the externnotify=/usr/bin/myapp feature in
 voicemail.conf to chown the permissions to something else.  Since they are
 root, asterisk should have no problem deleting and moving them around with
 less privileges.
 
 Chris Coulthurst
 [EMAIL PROTECTED]
 
 - Original Message -
 From: hugolivude [EMAIL PROTECTED]
 To: Asterisk-Users@lists.digium.com
 Sent: Tuesday, August 16, 2005 11:40 AM
 Subject: [Asterisk-Users] Voicemail file permissions
 
 
 I'm running RedHat 9 with a TDM400 (2FXO, 2FXS).
 
 I'd like to give my Asterisk users the option of cleaning up their
 voicemail mailbox from their Windows PCs.  I set up Samba and added
 all the users with restricted access to their mailbox only, but here's
 the problem:
 
 The voicemail .wav files that Asterisk creates have root as both owner
 and group.  Since the users do not have root privileges, they can't do
 much with the files.  BTW I'm not sure why the voicemail .wav files
 have root as both owner and group because I followed the instructions
 for running Asterisk other than root (see
 http://www.voip-info.org/wiki-Asterisk+non-root).
 
 Is there a way around this w/o giving everyone root privileges!
 
 Thanks,
 Hugh
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread hugolivude
  Is there a way around this w/o giving everyone root privileges!
 
 Do you want to allow every user to delete another user's voicemail?
 
 If not, how do you sync voicemail users and samba users?

I want each user to see, read and write (delete) their own voicemail
ONLY (i.e. a user shouldn't be able to listen to someone elses
voicemails).  I gave each user an account on the Asterisk box and
limited their access to their mailbox folder only.

Hugh
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread Tzafrir Cohen
On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:
   Is there a way around this w/o giving everyone root privileges!
  
  Do you want to allow every user to delete another user's voicemail?
  
  If not, how do you sync voicemail users and samba users?
 
 I want each user to see, read and write (delete) their own voicemail
 ONLY (i.e. a user shouldn't be able to listen to someone elses
 voicemails).  I gave each user an account on the Asterisk box and
 limited their access to their mailbox folder only.

So don't waste your time on saving the voicemail on Asterisk. Save it on
a specific folder in an imap server on the user's home directory.

If you use a decent mail client, getting notifications for new mails in
that folders, deleting them, playing them, and whatever should be easy.

On the Asterisk side you only need to keep voicemail config in sync.
Maybe it would be easier to just forward every mailbox nnn to
[EMAIL PROTECTED] and use an aliases file to do the real forwarding. That
way you keep the emails away from Asterisk's config.

The downside: no message-waiting indicator.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread Matthew Boehm

Tzafrir Cohen wrote:

On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:


Is there a way around this w/o giving everyone root privileges!


Run asterisk as its own user/group. We do.

-Matthew

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread hugolivude
I am running Asterisk as its own user/group; at least I followed the
instructions for doing so from
http://www.voip-info.org/wiki-Asterisk+non-root.  Even so new
voicemails get created with owner/group as root.  Maybe I missed
something...

Hugh

On 8/17/05, Matthew Boehm [EMAIL PROTECTED] wrote:
 Tzafrir Cohen wrote:
  On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:
 
 Is there a way around this w/o giving everyone root privileges!
 
 Run asterisk as its own user/group. We do.
 
 -Matthew
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread hugolivude
Sorry, not following you at all.  Perhaps it's a lack of Linux knowledge.  

I understood that Asterisk puts voicemails in
var/spool/asterisk/voicemail/mailbox/###/INBOX.  Are you suggesting
that I could configure that to be a network drive on each user's
computer?  If so wouldn't that introduce all kinds of complications
like what to do when their computer is off?

Thanks for taking the time to respond though, most appreciated.

Howard

On 8/17/05, Tzafrir Cohen [EMAIL PROTECTED] wrote:
 On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:
Is there a way around this w/o giving everyone root privileges!
  
   Do you want to allow every user to delete another user's voicemail?
  
   If not, how do you sync voicemail users and samba users?
 
  I want each user to see, read and write (delete) their own voicemail
  ONLY (i.e. a user shouldn't be able to listen to someone elses
  voicemails).  I gave each user an account on the Asterisk box and
  limited their access to their mailbox folder only.
 
 So don't waste your time on saving the voicemail on Asterisk. Save it on
 a specific folder in an imap server on the user's home directory.
 
 If you use a decent mail client, getting notifications for new mails in
 that folders, deleting them, playing them, and whatever should be easy.
 
 On the Asterisk side you only need to keep voicemail config in sync.
 Maybe it would be easier to just forward every mailbox nnn to
 [EMAIL PROTECTED] and use an aliases file to do the real forwarding. That
 way you keep the emails away from Asterisk's config.
 
 The downside: no message-waiting indicator.
 
 --
 Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
 http://tzafrir.org.il |   | a Mutt's
 [EMAIL PROTECTED] |   |  best
 ICQ# 16849755 |   | friend
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-17 Thread Chris Coulthurst
If you want to use samba for their checking, you COULD use smb.conf to 
control which users get in to which folders.  You might make 
/var/spool/asterisk/voicemail/default readable by all, and make [username] 
entries in smb.conf to add 'admin user' accesses to only their voicemail 
directory tree.  I know it is doable, but I can't remember all the commands 
in samba off-hand to do it.


Even if this is not EXACTLY the best way to do it, at least it gives you a 
couple ideas to manipulate...


One thing you might think about is using a script to map voicemail 
extensions to known samba usernames/groups, and have the script chown the 
specific directories to that samba username and group.  I don't know what 
variables are passed (if any) from Comedian mail, but it doesn't really 
matter, since that script could read a list of ALL vm/username mappings each 
time voicemail is left, checked, deleted, and make a change to all of the vm 
users at the same time.  Some would be redundant, but its not exactly eating 
up a ton of cpu cycles to chown users.


Chris Coulthurst
[EMAIL PROTECTED]

- Original Message - 
From: hugolivude [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com

Sent: Wednesday, August 17, 2005 5:56 PM
Subject: Re: [Asterisk-Users] Voicemail file permissions


Sorry, not following you at all.  Perhaps it's a lack of Linux knowledge.

I understood that Asterisk puts voicemails in
var/spool/asterisk/voicemail/mailbox/###/INBOX.  Are you suggesting
that I could configure that to be a network drive on each user's
computer?  If so wouldn't that introduce all kinds of complications
like what to do when their computer is off?

Thanks for taking the time to respond though, most appreciated.

Howard

On 8/17/05, Tzafrir Cohen [EMAIL PROTECTED] wrote:

On Wed, Aug 17, 2005 at 07:48:29AM -0400, hugolivude wrote:
   Is there a way around this w/o giving everyone root privileges!
 
  Do you want to allow every user to delete another user's voicemail?
 
  If not, how do you sync voicemail users and samba users?

 I want each user to see, read and write (delete) their own voicemail
 ONLY (i.e. a user shouldn't be able to listen to someone elses
 voicemails).  I gave each user an account on the Asterisk box and
 limited their access to their mailbox folder only.

So don't waste your time on saving the voicemail on Asterisk. Save it on
a specific folder in an imap server on the user's home directory.

If you use a decent mail client, getting notifications for new mails in
that folders, deleting them, playing them, and whatever should be easy.

On the Asterisk side you only need to keep voicemail config in sync.
Maybe it would be easier to just forward every mailbox nnn to
[EMAIL PROTECTED] and use an aliases file to do the real forwarding. That
way you keep the emails away from Asterisk's config.

The downside: no message-waiting indicator.

--
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Voicemail file permissions

2005-08-16 Thread hugolivude
I'm running RedHat 9 with a TDM400 (2FXO, 2FXS).  

I'd like to give my Asterisk users the option of cleaning up their
voicemail mailbox from their Windows PCs.  I set up Samba and added
all the users with restricted access to their mailbox only, but here's
the problem:

The voicemail .wav files that Asterisk creates have root as both owner
and group.  Since the users do not have root privileges, they can't do
much with the files.  BTW I'm not sure why the voicemail .wav files
have root as both owner and group because I followed the instructions
for running Asterisk other than root (see
http://www.voip-info.org/wiki-Asterisk+non-root).

Is there a way around this w/o giving everyone root privileges!

Thanks,
Hugh
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Voicemail file permissions

2005-08-16 Thread Chris Coulthurst
My suggestion would be, use the externnotify=/usr/bin/myapp feature in 
voicemail.conf to chown the permissions to something else.  Since they are 
root, asterisk should have no problem deleting and moving them around with 
less privileges.


Chris Coulthurst
[EMAIL PROTECTED]

- Original Message - 
From: hugolivude [EMAIL PROTECTED]

To: Asterisk-Users@lists.digium.com
Sent: Tuesday, August 16, 2005 11:40 AM
Subject: [Asterisk-Users] Voicemail file permissions


I'm running RedHat 9 with a TDM400 (2FXO, 2FXS).

I'd like to give my Asterisk users the option of cleaning up their
voicemail mailbox from their Windows PCs.  I set up Samba and added
all the users with restricted access to their mailbox only, but here's
the problem:

The voicemail .wav files that Asterisk creates have root as both owner
and group.  Since the users do not have root privileges, they can't do
much with the files.  BTW I'm not sure why the voicemail .wav files
have root as both owner and group because I followed the instructions
for running Asterisk other than root (see
http://www.voip-info.org/wiki-Asterisk+non-root).

Is there a way around this w/o giving everyone root privileges!

Thanks,
Hugh
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Voicemail File permissions

2003-10-16 Thread Stephen R. Besch
I'm working on an application that monitors, displays and manipulates 
voice mail messages for individual clients, with an option to click and 
play in a windows interface. The problem is that I need to create a 
Samba share that is accessible by the Windows file system object and I 
don't want to give the share root access.  What I need is for the voice 
mail files to be created with a group other than root and with 770 
permissions.  From what I can tell, the only way I can do this is to 
patch the voicemail application. However, this means re-patching every 
time I update from CVS.  It there any possiblilty that the create group 
and default permissions for the voicemail files and folders could be 
made options in the voicemail.conf file?

Stephen R. Besch

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users