Grant Carmichael
2004-Dec-08 20:41 UTC
rsync works fine when I'm root on the client, but not as a non-root user
Rsync version: rsync-2.6.3.tar.gz <http://samba.anu.edu.au/ftp/rsync/rsync-2.6.3.tar.gz> OS: Fedora Can anyone give me some pointers? I can do and rsync fine when I'm root on the client, but not as a non-root user.. This works: /usr/local/bin/rsync --archive --verbose --recursive --links --rsh="ssh" root@someserver.net::mail . This does not: /usr/local/bin/rsync --archive --verbose --recursive --links --rsh="ssh" gcarmich@someserver.net::mail . Dies with error: rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(359) With a non root user, ssh will authenticate them, but then the rsync process dies. The gcarmich user has a link from /home/gcarmich/rsyncd.conf to /etc/rsyncd.conf Permissions on the servers rsync are: -rwxr-xr-x 1 root root 1258281 Dec 8 09:52 /usr/local/bin/rsync My config file looks like: uid = nobody gid = nobody use chroot = no max connections = 5 syslog facility = local5 pid file = /var/run/rsyncd.pid log file = /etc/rsync.log [mail] path = /home/gcarmich/test comment = Sendmail Files Permissions on the /home/gcarmich/test directory are: drwxrwxr-x 2 gcarmich gcarmich 4.0K Dec 8 10:50 . drwx--x--x 16 gcarmich gcarmich 4.0K Dec 8 11:05 .. -rw-rw-rw- 1 root root 7 Dec 8 10:50 one -rw-rw-rw- 1 gcarmich gcarmich 4 Dec 8 10:39 two Regards, Grant -------------- next part -------------- HTML attachment scrubbed and removed
John Van Essen
2004-Dec-08 23:57 UTC
rsync works fine when I'm root on the client, but not as a non-root user
On Wed, 8 Dec 2004, Grant Carmichael <grant@evanced.net> wrote:> > With a non root user, ssh will authenticate them, but then the rsync > process dies....> My config file looks like: > > uid = nobody > gid = nobody > use chroot = no > max connections = 5 > syslog facility = local5 > pid file = /var/run/rsyncd.pid/ > log file = /etc/rsync.logCan a non-root user write to the paths that you specified for the pid and log files? Prolly not. That's why rsync dies so quickly. Create a rsyncd.conf file in your home directory that uses paths that you can write to. Also - since the specified uid and gid directives will not work for a non-root user, leave those out. John
Reasonably Related Threads
- rsync working with root, but not with other users
- Rsyncing Samba4 Roaming Profiles between servers
- Failed cleanup on peer probe tmp file causes volume re-initialization problems
- Modulus Problem
- [Bug 14260] New: leading / added to file name causing file not found when setting permissions