Hi as I'm a real newbie to rsync I'd better apoligise if this is 'old hat'. I'm trying to get to grips with rsync and I've set up rysnc as a server on a redhat 8 linux pc using a simple rsyncd.conf I then tried to list some files placed in the rsync server by using a commandline shell to this server. I've called the server 'server'. But for some reason I can't get a list. The /etc/rsyncd.conf file is this: ---------------------------------- read only = false use chroot = true pid = /var/run/rsyncd.pid transfer logging = true log format = %h %o %f %l %b #my windows pc hosts allow = 192.168.1.1 strict modes = false [public] path = /home/public/test comment = PublicDirectory secrets file = /etc/rsyncd.scrt list = yes --------------------------------- The DOS shell command I'm using is this: C:\cwrsync>rsync -v server:public The output is this: --------------------------------------------------------------- C:\cwrsync>rsync -v server:public StuartH@server's password: :<I enter my Linux login password here> Permission denied, please try again. StuartH@server's password: --------------------------------------------------------------- Why is it not allowing me to get a file list? If I do : rsync -v stuarth@green: and enter my linux logon password then *that* works and displays the files in my Linux 'stuarth' home directory. If I do rsync -v green:: I get : C:\cwrsync>rsync -v green:: public PublicDirectory I looked at the system logs on the linux server and read this when I did the nonworking command : 11:29:01 localhost sshd(pam_unix)[1403]: check pass; user unknown 11:29:01 localhost sshd(pam_unix)[1403]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=ecs014 what does this mean? I'm baffled.... Using: redhat8 :rsync is V2.5.7 Windows rsync is V2.6.2 -- Stuart Halliday
On Wed, Jun 16, 2004 at 11:33:29AM +0100, Stuart Halliday wrote:> Hi as I'm a real newbie to rsync I'd better apoligise if this is 'old hat'.Its OK! the only silly question is that which is not asked. We all were newbies once or twice... [SNIP]> The DOS shell command I'm using is this: > > C:\cwrsync>rsync -v server:public > > Why is it not allowing me to get a file list? > > > If I do : > > rsync -v stuarth@green:Try rsync -v server::public rsync -v server:public is looking for directory called punlic on server not for the rsync module called public on server. Please read the doco carefully for difference between '::' and ':' notation. Tomasz Ciolek -- Tomasz M. Ciolek ******************************************************************************* tmc at dreamcraft dot com dot au ******************************************************************************* GPG Key ID: 0x41C4C2F0 GPG Key Fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 Key available on www.pgp.net *******************************************************************************
Stuart Halliday
2004-Jun-17 09:13 UTC
Truly awful rsync docs - Re: real Newbie query sorry!
> I think you will find youre using rsync secrets in the config - thats > rsync's own auth system. > > read the manual about rsync authentication vs account authentication.Thanks Tomasz. Surely as I've specified a secrets file then the password I use is the one in this secrets file? But how does it know which user I am? It doesn't ask for a username. "read the manual". Unfortunately the rsync documents are really awful. Some of the worse I've seen in my 15 years as a IT support engineer. They appear to be written by rsync users FOR rsync users and don't help a beginner like myself. I looked at the 'manual' and there is NOTHING about 'rsync authentication vs account authentication'. I assume you meant the MAN page at: http://rsync.samba.org/ftp/rsync/rsync.html This page talks about things I've never used like ssh and rcp. As it starts off with a list of options it is obvious not meant to be a true manual, just a reference document for existing users. The SETUP section is a joke as it starts off by refering you to another text file! Then after you look at this other file you're none the wiser. Why isn't there a beginners guide to setting up rsync? The rsync front page talks of a tutorial by devshed at: http://www.devshed.com/c/b/Administration#/Rsync/page1.html Except there isn't one.... It's now: http://www.devshed.com/c/a/Administration/File-Synchronization-With-Rsync/ Quite why the official main rsync site would rely on an external 3rd party web site to have their tutorial is not good. External web sites come and go.... It looks like rsync docs were written by a seasoned user years ago in a plain text file and this text file was dumped as a 'HTML file' with no attempt to make it web friendly. It appears to have had syntax errors corrected over a number of years with no attempt made to make it beginner friendly. After looking through devshed's article I see there are TWO rsync web site which look very similar. http://www.samba.org/rsync/ and http://rsync.samba.org/ This just confuses me. ;-) If I ever get rsync working, I'll have to write a better manual. :-)