On Mon, 13 Sep 2010 16:52:07 +0200, Gaetan Bisson <[email protected]> wrote: > [2010-09-13 15:43:33 +0200] Thomas Bächler: >> Am 13.09.2010 13:18, schrieb Pierre Schmitz: >> > On Mon, 13 Sep 2010 13:16:53 +0200, Thomas Bächler >> > <[email protected]> wrote: >> >> Am 13.09.2010 13:05, schrieb Pierre Schmitz: >> >>> * the cron is run as nobody and not root (anyone knows how to do this >> >>> without sudo? no, su does not work it seems) >> >> >> >> $ su -c "/usr/bin/pkgstats" nobody >> >> I use this everywhere, and it works. >> > >> > Doesn't work here (tested on several systems). It always asks me to >> > change the password for the user nobody. >> >> Yes, the user needs to be able to log in (nobody has an invalid shell by >> default iirc). > > This can be overriden by "su -s /bin/sh nobody"; the issue here is that > the third field of nobody's entry in /etc/shadow (which indicates when > the password was last changed) is set to "0" (any positive value would > work).
Interesting. I wonder if that is a bug in our default shadow file or some weired feature. Shouldn't this just be empty to disable password aging? See man 5 shadow -- Pierre Schmitz, https://users.archlinux.de/~pierre

