[Asterisk-Users] vmail.cgi cannot read/delete messages
julian green
julian.green at jacobsrimell.com
Thu May 8 06:15:58 MST 2003
umask is a unix thing. Every unix process has one and it is used to
determine the file permissions a file gets when it is created. umask
is a bit pattern of bits that get turned off. Normal files get a
starting permission of 666 and directories get a starting permission of
777. The umask is applied and that leaves the permission bit pattern
the file is created with.
e.g.
Find out what the umask is
[jgreen at acton1 jgreen]$ umask
002
(002 means to turn off world write)
create a file
[jgreen at acton1 jgreen]$ touch x
[jgreen at acton1 jgreen]$ ls -l x
-rw-rw-r-- 1 jgreen jgreen 0 May 8 14:08 x
set umask to another value and repeat above test.
[jgreen at acton1 jgreen]$ umask 022
[jgreen at acton1 jgreen]$ rm x
[jgreen at acton1 jgreen]$ touch x
[jgreen at acton1 jgreen]$ ls -l x
-rw-r--r-- 1 jgreen jgreen 0 May 8 14:12 x
Julian
Uriel Carrasquilla wrote:
>If you excuse my ignorance. What "umask", what it? where is it? how do I
>set up?
>URiel
>
>-----Original Message-----
>From: asterisk-users-admin at lists.digium.com
>[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Adam
>Goryachev
>Sent: Thursday, May 08, 2003 12:00 AM
>To: asterisk-users at lists.digium.com
>Subject: RE: [Asterisk-Users] vmail.cgi cannot read/delete messages
>
>
>Isn't the mode determined by the umask which is inherited by asterisk at
>startup ?? Just make sure you define an appropriate umask setting when
>starting asterisk...
>
>Regards,
>Adam
>
>-----Original Message-----
>From: asterisk-users-admin at lists.digium.com
>[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Uriel
>Carrasquilla
>Sent: Thursday, 8 May 2003 1:03 PM
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] vmail.cgi cannot read/delete messages
>
>
>vmail.cgi rocks (if I can borrow the expression for Mark Street). As Mark
>pointed out, the /vm/INBOX messages are created with 0700 security and
>vmail.cgi is not happy. Apache/cgi/vmail.cgi cannot play them unless I fool
>around with the Apache wrapper or chmod 755 *.* thefiles myself. (Tedious,
>that is why I like computers).
>Obviously this is not acceptable. I took a trip to the apps/app_voicemail.c
>country club and found that I can modify it to force the issue by altering
>the directory and files as it "happens" when recording takes place.
>What is everybody else doing?
>I am, for sure, not the only one with this issue. It comes with the cgi
>territory. I am trying to keep my pearl vmail script with the -T switch. I
>can also modify with chmod here but I am going to force the issue, I prefer
>the "c" code.
>Regards,
>Uriel
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
More information about the asterisk-users
mailing list