permissions on /var/log/messages

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Mar 2 17:46:19 UTC 2009


On Mon, 2 Mar 2009, Denys Vlasenko wrote:

> On Monday 02 March 2009 07:03:53 am Hamish Moffatt wrote:
> > I'd like /var/log/messages to be readable by non-root users. syslogd.c
> > uses device_open to open the file though and it has the permissions
> > hardcoded to 0600.
> >
> > I can't really see why it uses device_open... nor a good solution.
>
> I propose this patch.

I don't really like that patch :(
0666 file permissions is way out.
Debian has that at 0640, and that's how long I would go too.
Could be made configurable, though.


Cheers,

-- 
Cristian


More information about the busybox mailing list