Article View: news.software.nntp
Article #81745Re: Authentication for rsync over ssh failing
From: Alexander Bartolich
Date: Tue, 04 Aug 2009 21:54
Date: Tue, 04 Aug 2009 21:54
62 lines
3812 bytes
3812 bytes
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.
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?
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".
> 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.
> 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?
--
Brüder, in die Tonne die Freiheit,
Brüder, ein Stoppschild davor.
Egal was die Schwarzen Verlangen
Rufen wir: Ja! Brav im Chor.
Technical Details
Message-ID:
<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!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.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>Show Full Headers
Complete Article Headers
Message-ID: <h5aand$d2c$1@news.albasani.net> Subject: Re: Authentication for rsync over ssh failing Date: Tue, 04 Aug 2009 21:54:53 +0000 From: Alexander Bartolich <alexander.bartolich@gmx.at> 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> 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!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail Newsgroups: news.software.nntp Organization: albasani.net Lines: 62 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net e/XhBjPZScHaOe8swnt6MjOFTlp6q/t8BJtuodbY7L0uiZMtyXWL3vfCaP7xtpwf7hUNe6oMD0pivr4oY2TdoKhFlcBnrx0LxMuCyhERtyrxxNH0cpIv9TdF7m2MDCfz X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Tue, 4 Aug 2009 21:54:53 +0000 (UTC) X-User-ID: fTjJSMShqKpdvKoOnS4ZdU10oaa/9zOXIkt+OEI6lRCjjJMGe7NqXABRcszcJyXSAcqA0jkUO7InudMWUqzqzg== Cancel-Lock: sha1:cWg+Qm5A3cou/tpVgS5Me+k3rP4= User-Agent: slrn/0.9.9p1 (Linux) X-NNTP-Posting-Host: lJvA2S0QgeZ3D07HxkM54s2pGn6iJbzlk9dXn9Ccj3I=