[Asterisk-Dev] What would prevent logs from being recreated ifthey are deleted?

Rushowr madprofzero at yahoo.com
Wed Dec 14 10:42:22 MST 2005


Possibly a stupid comment/question, but is /var and /var/log writeable by
asterisk? If not, the system wouldn't be able to get as far as
/var/log/asterisk to find the "good" permissions

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Chuck Bunn
Sent: Wednesday, December 14, 2005 11:58 AM
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] What would prevent logs from being recreated
ifthey are deleted?

Hi,

I am running asterisk as non root but I set the directory permissions and
ownership to match. Here is my ls -la of /var/log:

[root at tomato log]# ls -la
total 2352
drwxr-xr-x  11 root     root         4096 Dec 11 04:02 .
drwxr-xr-x  23 root     root         4096 Oct 13 17:57 ..
-rw-r-----   1 root     root        27324 Dec 15  2005 acpid
-rw-------   1 root     root        12480 Oct 13 18:03 anaconda.log
-rw-------   1 root     root        21048 Oct 13 18:03 anaconda.syslog
-rw-------   1 root     root        52236 Oct 13 18:03 anaconda.xlog
drwxrwxr-x   4 asterisk asterisk     4096 Dec 14 07:27 asterisk
drwxr-x---   2 root     root         4096 Nov  8 15:30 audit
-rw-------   1 root     root            0 Dec 11 04:02 boot.log
-rw-------   1 root     root            0 Dec  4 04:03 boot.log.1
-rw-------   1 root     root            0 Nov 27 04:02 boot.log.2
-rw-------   1 root     root            0 Nov 20 04:02 boot.log.3
-rw-------   1 root     root            0 Nov 15 15:36 boot.log.4
...

Thanks


Tilghman Lesher wrote:

>On Wednesday 14 December 2005 08:31, Chuck Bunn wrote:
>  
>
>>Do you mean with 'touch' I have done this and it does not work also I 
>>tried 'service syslog restart' and this does not work either. I had 
>>deleted the full and messages logs, queue_log and event_log work just 
>>fine.
>>    
>>
>
>Are you perhaps running Asterisk as non-root, and the directory 
>permissions are such that they only allow root to create those files?
>
>  
>

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list