[PLUG] Permissions for /var/log/

Matt Alexander m at netpro.to
Wed May 15 18:04:49 UTC 2002


chmod 755 /var/log
chown majordomo /var/log/majordomo.log
chmod 600 /var/log/majordomo.log

Majordomo will be able to write to the log, but since it doesn't have
write access to /var/log, it won't be able to delete it (which should be
fine).  You can use logrotate just like you did for your maillog to rotate
the majordomo.log.
~M


On Wed, 15 May 2002, Rich Shepard wrote:

> On Wed, 15 May 2002, Matt Alexander wrote:
>
> > What's the name of the logfile that it's actually writing to?  If it's
> > something like "majordomo", then you could have 755 permissions on
> > /var/log and chown the majordomo logfile to whatever user majordomo is
> > running as.
>
> Matt,
>
>   The file is:
>
> -rw--w--w-   1 majordom daemon        276 May 14 21:28 majordomo.log
>
>   My problem has been that /var/log/ itself is writable only by root. I
> *think* that I need o+w on the directory so that majordomo can write to the
> log file. Read and execute permissions weren't sufficient. That's why there
> were no log entries and majordomo was returning an error message at the
> bottom of each response it sent.
>
> Thanks,
>
> Rich
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>





More information about the PLUG mailing list