Re: strange file permission problem

2002-12-21 Thread shlomo solomon
On Saturday 21 December 2002 05:32, Xavier Gentoo wrote: My guess would be that you shouldn't be logging into a separate logfile at all. See logger(1). I don't think that's relevant. As I understand it, logger allows writing to syslog which is not what I want. My script checks if ADSL is up

Re: strange file permission problem

2002-12-21 Thread Tzafrir Cohen
On Sat, 21 Dec 2002, shlomo solomon wrote: On Saturday 21 December 2002 05:32, Xavier Gentoo wrote: My guess would be that you shouldn't be logging into a separate logfile at all. See logger(1). I don't think that's relevant. As I understand it, logger allows writing to syslog which isnot

Re: strange file permission problem

2002-12-21 Thread shlomo solomon
On Saturday 21 December 2002 21:56, Tzafrir Cohen wrote: logger is indeed such a quick-and-dirty tool... I'll try it - but aside from my curiosity about what's causing this, it's not a high priority item (at least until I finish lots of other things I want to fix on my system), since as I wrote

Re: strange file permission problem

2002-12-20 Thread guy keren
On Thu, 19 Dec 2002, Arie Folger wrote: On Thursday 19 December 2002 11:19, shlomo solomon wrote: I have a strange problem. Actually, I've solved it, but I don't like the solution and I don't like not knowing what's causing it. So maybe someone can help. snip The problem is that every

Re: strange file permission problem

2002-12-19 Thread Gilad Ben-Yossef
On Thu, 2002-12-19 at 18:19, shlomo solomon wrote: The problem is that every so often (I don't know when it happens), the permission becomes 600 and non-root users can no longer read the file. There are also some gz files in the /var/log/mylogs directory (created by logrotate). The same

Re: strange file permission problem

2002-12-19 Thread shlomo solomon
On Thursday 19 December 2002 18:41, Gilad Ben-Yossef wrote: I bet that logrotate is the one to blame for this. It simply creates the files with it's default permissions. Check logrotate config file for the dirty details. I already thought of that, but eliminated the possibility because this

Re: strange file permission problem

2002-12-19 Thread Arie Folger
On Thursday 19 December 2002 11:19, shlomo solomon wrote: I have a strange problem. Actually, I've solved it, but I don't like the solution and I don't like not knowing what's causing it. So maybe someone can help. snip The problem is that every so often (I don't know when it happens), the

Re: strange file permission problem

2002-12-19 Thread Omer Zak
Hypothesis: When logrotate rotates away log files, your cron job has to create a new log file. This new log file apparently gets the default (for root cron jobs) permission of 600. A solution: have your cron job change the permission of your log file each time it writes; or before writing it is