Article View: news.software.nntp
Article #81747Re: Authentication for rsync over ssh failing
From: John F. Morse
Date: Wed, 05 Aug 2009 00:14
Date: Wed, 05 Aug 2009 00:14
124 lines
5207 bytes
5207 bytes
Alexander Bartolich wrote:
> John F. Morse schrieb:
>
>> Alexander Bartolich wrote:
>>
>>> [ StrictModes yes ]
>>> My recommendation: Don't mess with user "news".
>>> Instead create another user and add it to group "news".
>>>
>> I fail to see where that would be a solution. It would give the new user
>> the same modes as user news, the owner of the group news.
>>
>
> On my system ~news is /var/spool/news
>
> $ ls -lad /var/spool/news
> drwxrwxr-x 10 news news 4096 2009-07-29 21:11 /var/spool/news/
>
> As you see group "news" has write permissions to ~news. If sshd is
> configured to "StrictModes yes" (the default) then it will not allow
> public key login as user "news". Changing the permissions of ~news
> can have unintended side effects, though.
>
But I am accessing when using ssh and scp.
> The alternative is to create another user, let's call it "backup".
> Permissions of directories ~backup and ~backup/.ssh are set to 0700.
> Since nobody else uses these directories that has no side effects.
>
> To perform the copy after login user "backup" needs read access to
> the requested files. A secure way to achieve that is to make the
> files group-readable and add user "backup" to that group.
>
>
>> It would also run contrary to the "chmod go-w" idea, because the files
>> are actually 600 or 700 for more security, eliminating all group and
>> other access.
>>
>
> So, your ~news is actually set to 0700?
> And all files in it are set to 0600?
>
Yes, I've stated that several times.
What I am using is what I have found on various Websites:
http://troy.jdmz.net/rsync/index.html
http://www.scrounge.org/linux/rsync.html
http://kimmo.suominen.com/docs/ssh
http://www.rootprompt.org/article.php3?article=8976
http://sial.org/howto/rsync
http://sial.org/howto/openssh/publickey-auth/problems
https://help.ubuntu.com/community/rsync
http://www.debianhelp.co.uk/rsync.htm
http://everythinglinux.org/rsync
http://www.fredshack.com/docs/rsync.html
http://www.perihel.at/3/index.html#rsync
http://rsync.samba.org
http://www.samba.org/rsync/documentation.html
http://samba.anu.edu.au/rsync/examples.html
http://www.mikerubel.org/computers/rsync_snapshots
http://linux.about.com/library/cmd/blcmdl1_rsync.htm
http://en.wikipedia.org/wiki/Rsync
All of the above say basically the same thing when addressing my situation.
I guarantee you, I've read and tried different methods until I'm blue in
the face.
> Anyway, "more security" is a vague term. With the group based setup
> you can give programs only read-access, and nothing more. Bugs or
> exploits in those programs then cannot be used to harm user "news".
>
I'm not worried about the term. My goal (focus) is to get rsync working
unattended.
>> During testing I did loosen the access up to 777 and still was not able
>> to authenticate with an RSA key using rsync (but ssh and rcp/scp did work).
>>
>
> "still not able" is a funny way to put it.
>
Why do you think that?
>> See my lengthy reply to Ray, and especially the area where I suspect
>> rsync may be locking me out because I'm running this remote rsync test
>> via ssh.
>>
>> Perhaps you use rsync remotely with RSA/DSA key authentication
>> (not passwords)?
>>
>
> Sorry, but I understand less and less what you are saying.
>
> You started the thread with
> # I have the proper keys created ("ssh-keygen -t rsa") with no
> # passphrase.
> and now you say that you are not using public keys?
Where do you see I stated that I am not using public keys?
I think my extremely-lengthy messages have all that is needed in them to
understand what is happening.
I posted the commands, followed by the results. I am not the one
"saying" these, but Debian. ;-)
--
John
Technical Details
Message-ID:
<h5aisf$aie$1@optima5.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!195.208.113.1.MISMATCH!goblin3!goblin.stu.neva.ru!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mailReferences:
<h58ftm$ndc$1@optima5.xanadu-bbs.net> <80ocqwqgiy.fsf@banana.shacknet.nu> <h58lfi$oq5$1@optima5.xanadu-bbs.net> <h58oji$vu0$2@news.albasani.net> <h5a7uu$7ga$1@optima5.xanadu-bbs.net> <h5aand$d2c$1@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <h5aisf$aie$1@optima5.xanadu-bbs.net> Subject: Re: Authentication for rsync over ssh failing Date: Tue, 04 Aug 2009 19:14:07 -0500 From: "John F. Morse" <john@example.invalid> References: <h58ftm$ndc$1@optima5.xanadu-bbs.net> <80ocqwqgiy.fsf@banana.shacknet.nu> <h58lfi$oq5$1@optima5.xanadu-bbs.net> <h58oji$vu0$2@news.albasani.net> <h5a7uu$7ga$1@optima5.xanadu-bbs.net> <h5aand$d2c$1@news.albasani.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!195.208.113.1.MISMATCH!goblin3!goblin.stu.neva.ru!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 124 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: optima5.xanadu-bbs.net 1249431247 10830 192.168.89.210 (5 Aug 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Wed, 5 Aug 2009 00:14:07 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: <h5aand$d2c$1@news.albasani.net> X-Enigmail-Version: 0.96.0