Why is rsyncd trying to access /etc/pwd.db?

jw schultz jw at pegasys.ws
Fri Jan 17 03:50:01 EST 2003

On Wed, Jan 15, 2003 at 08:30:35PM -0800, Hans Zaunere wrote:
> I have rsync-2.5.5 humming along on FreeBSD 4.7-STABLE with no apparent
> problems.  However, I notice when some clients connect to sync, I get this in
> /var/log/messages
> rsyncd[42843]: /etc/pwd.db: No such file or directory
> rsync is running as root with this basic rsync.conf:
> use chroot = yes
> read only = yes
> timeout = 600
> Well of course /etc/pwd.db exists and could be readable, but more
> importantly, why is it trying to be accessed at all?  It's an anonymous
> server, so people trying to use auth. have no benefit.  Is there some
> specific client rsync flag that triggers that message?  How can I correct it,
> and what does it mean?

I'm not too familiar with FreeBSD but my guess would be that
/etc/pwd.db is probably /etc/passwd in a hash file format
(db).  rsync uses getpwnam to look up user names.  This
library routine in your configuration would try to read
/etc/pwd.db.  This file doesn't exist within the chrooted
environment.  The -o, --owner, -g, --group options and
--numeric-ids associated with chroot.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt

More information about the rsync mailing list