On Fri, Apr 3, 2009 at 8:04 AM, Jeff Lasman <[email protected]> wrote:
> See my thread on rsync and BIND if you'd like any background on this.
>
> Somehow, while setting up rsync and doing test transfers (probably while
> testing as user "named"), we managed to change the ownership of a bunch
> of files and directories, to user "named".
>
> Including:
>
> / directory
> /etc/passwd
> /etc/group
> /bin/su
>
> and many more.
>
> Could this occur without a bug in the kernel?

Most default installs of bind create a chroot and some remount proc
inside the chroot with the bind option (CentOS's named init script
does this for sure).  Any rsync command with a recursive function
could undesirably change the user.  I've done it once in the past.

# grep proc /proc/mounts

Looking for:

/proc /var/named/chroot/proc proc rw,nodiratime 0 0

-- 
Regards...      Todd

Reply via email to