[BlueOnyx:12908] Re: manually create SITExx-logs?
Tobias Gablunsky
t.gablunsky at cbxnet.de
Tue Apr 23 12:36:30 -05 2013
Hi Michael,
thanks for the answer,
>
> Hi Tobias,
>
> > I have a site showing wrong quota for "Usage logs" for a
> site on a fully yum updated 5108R - it shows 5GB used of 1GB.
> However everything seems to run fine.
> >
> > I think I found the reason: I moved the site over from a
> 5100R. Thats why all the log files are owned by root and this
> even explains the quota usage.
> >
> > So as a solution I think I have to create a new user
> SITExx-logs and chown all the log files.
> > 1) Do I have to do anything more with this user? Add to
> special groups? Do some arrangements in cced?
> > 2) I think this should get added to cmuImport to be done
> automatically.
>
> CMU does that automatically and the mechanism for that has
No, the user was not automatically created. The installed version of cmu is "5107R-cmu-2.90-0BX02.el6.noarch".
>
> /usr/sausalito/sbin/user_gid_fix.pl
> /usr/sausalito/sbin/fix_user_UID_and_GID.pl
Even these scripts did not create the missing user "SITE55-logs". I looked at an existing user and created one manually:
useradd SITE55-logs -g site55 -M -s /bin/badsh -b /home/.sites/133/site55/logs/ -c host.domain.name
After that I let the scripts run again and they did not change the rights of the log files:
root at anubis logs]# ls -l
insgesamt 32680
drwxrws--- 3 root site55 4096 6. Apr 03:37 2013
-rw-rw---- 1 root site55 343453 16. Apr 07:09 ftp.log
-rw-rw---- 1 root site55 969115 23. Okt 13:18 web.daily
-rw-rw---- 1 root site55 25730158 23. Apr 03:34 web.log
-rw-rw---- 1 root site55 6180545 6. Apr 05:49 web.log-20130406.gz
-rw-rw-r-- 1 root site55 172999 23. Okt 13:18 web.stats
>
> They fix 'em.
>
> And yes: 5100R had issues with the UID/GID of the site logfiles. It
> often gave logs the wrong UID and/or GID.
>
> --
> With best regards
>
> Michael Stauber
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
More information about the Blueonyx
mailing list