Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34090 - sysklogd's daily cronjob can't change ownership of logfiles
Summary: sysklogd's daily cronjob can't change ownership of logfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jon Portnoy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-22 02:33 UTC by Martin Ehmsen (RETIRED)
Modified: 2003-11-22 15:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the text in the manpage to match reality. (coreutils-5.0.91-manpage.patch,2.22 KB, patch)
2003-11-22 05:54 UTC, Martin Ehmsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ehmsen (RETIRED) gentoo-dev 2003-11-22 02:33:21 UTC
When my cron executes /etc/cron.daily/syslog.cron I get the following errors:
/bin/chown: `root.adm': invalid user
repeated several times.
In /etc/cron.daily/syslog.cron there is the following line:
/bin/chown root.adm $LOG
which causes the problem.

But according to the chown man-page the notation "root.adm" should be legal, but
it's not. Changeing it to root:adm fixes it.
But the man-page of chown says:

"If the user name is followed by a colon or dot and a group name (or numeric
group ID), with no  spaces between them, the group ownership of the files is
changed as well."

So I don't know if this is a sysklogd bug or a chown (coreutils) bug.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(TM) XP1900+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs notitles"
GENTOO_MIRRORS="http://gentoo.linux.no/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline tetex svga tcltk java guile postgres X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla cdr
apache2 doc emacs fbcon flash gtk2 maildir mbox tiff xml -gnome -arts -kde"
Comment 1 Martin Ehmsen (RETIRED) gentoo-dev 2003-11-22 05:54:49 UTC
Created attachment 21084 [details, diff]
Fixes the text in the manpage to match reality.

Taken from the coreutils-5.0.91 tar-ball NEWS file:
- chown: `.' is no longer recognized as a separator in the OWNER:GROUP
  specifier on POSIX 1003.1-2001 systems.  If chown *was not* compiled
  on such a system, then it still accepts `.', by default.  If chown
  was compiled on a POSIX 1003.1-2001 system, then you may enable the
  old behavior by setting _POSIX2_VERSION=199209 in your environment.

So it just seems like a new feature. So a change to the chown man-page in the
required.

I just noticed that the sysklogd.cron file is changed, so emergeing sysklogd
againg fixed the problem with sysklogd.
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2003-11-22 15:37:49 UTC
Version bumped so everyone will get this fix.