Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Wrong permissions for $HOME
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
"Roman B."  
View profile  
 More options Nov 18 2011, 1:02 pm
Newsgroups: mailing.unix.openssh-dev
From: rbys...@gmail.com ("Roman B.")
Date: Fri, 18 Nov 2011 19:02:57 +0100
Local: Fri, Nov 18 2011 1:02 pm
Subject: Wrong permissions for $HOME
Hi,

today me and a friend of mine spent several hours figuring out why ssh
still asked for a password after we set up public key authentication.
We have tried to understand the problem by reading 'ssh -vvv ...', but
unfortunately the output was not useful. In the end of the day we have
found out that sshd actually was logging this problem.... So that's
for the context.

Now, can you please add some debugging information to ssh, so that the
user is able to understand the problem by reading ssh -vvv which will
be much mor helpful in comparison to sshd logging. Is there any reason
you haven't done so already?

Thanks
Roman
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Kahn Gillmor  
View profile  
 More options Nov 18 2011, 1:11 pm
Newsgroups: mailing.unix.openssh-dev
From: d...@fifthhorseman.net (Daniel Kahn Gillmor)
Date: Fri, 18 Nov 2011 13:11:21 -0500
Local: Fri, Nov 18 2011 1:11 pm
Subject: Re: Wrong permissions for $HOME

On 11/18/2011 01:02 PM, Roman B. wrote:

> Now, can you please add some debugging information to ssh, so that the
> user is able to understand the problem by reading ssh -vvv which will
> be much mor helpful in comparison to sshd logging. Is there any reason
> you haven't done so already?

the ssh client actually doesn't know what the problem is unless the
server tells it.  It's generally a bad idea for the server to publish
that sort of detailed error message, especially when authentication has
failed; this would be equivalent to publishing information about the
user's home directory to anyone who asks.

If the problem is on the server side, you'll need to read the server
side logs to diagnose it, sorry!

        --dkg

  signature.asc
1K Download

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Loftis  
View profile  
 More options Nov 18 2011, 1:13 pm
Newsgroups: mailing.unix.openssh-dev
From: mlof...@wgops.com (Michael Loftis)
Date: Fri, 18 Nov 2011 11:13:21 -0700
Local: Fri, Nov 18 2011 1:13 pm
Subject: Re: Wrong permissions for $HOME

On Fri, Nov 18, 2011 at 11:02 AM, Roman B. <rbys...@gmail.com> wrote:
> Hi,

> today me and a friend of mine spent several hours figuring out why ssh
> still asked for a password after we set up public key authentication.
> We have tried to understand the problem by reading 'ssh -vvv ...', but
> unfortunately the output was not useful. In the end of the day we have
> found out that sshd actually was logging this problem.... So that's
> for the context.

> Now, can you please add some debugging information to ssh, so that the
> user is able to understand the problem by reading ssh -vvv which will
> be much mor helpful in comparison to sshd logging. Is there any reason
> you haven't done so already?

Security mostly, also the fact that the error isn't on the client's
side anyway, it's server side.  The administrator would be able to
find the error quickly, it's not user-solveable anyway.  In the case
ofa  personal machine, you're both, so your responsibility is to check
your logs.

If you expose server side errors to the client you also give attackers
more information.  In this sort of a case the failure is ideally
identical to wrong password and user does not exist from the clients
point of view.  Thus an attacker can't gain any information from this
route.  Yes yes yes, sounds silly, but, every layer helps.  It's only
a small part of a security model.

--

"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dag-Erling Smørgrav  
View profile  
 More options Nov 18 2011, 3:05 pm
Newsgroups: mailing.unix.openssh-dev
From: d...@des.no (Dag-Erling Smørgrav)
Date: Fri, 18 Nov 2011 21:05:07 +0100
Local: Fri, Nov 18 2011 3:05 pm
Subject: Re: Wrong permissions for $HOME

"Roman B." <rbys...@gmail.com> writes:
> If attacker has stolen valid key, then trying to log in with this key
> will give him either a shell or the information that user directory or
> .ssh is writable (if we assume there was no other problem),

Uh, no.  The only thing the attacker knows is that public-key
authentication with that particular key did not succeed.  There are a
number of reasons why it would fail: there might not be a valid
authorized_keys file at all, there might be one but the key is not
listed there, it might be listed but with restrictions (e.g. "from")
which the client does not satisfy, etc.

DES
--
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Iain Morgan  
View profile  
 More options Nov 22 2011, 9:01 pm
Newsgroups: mailing.unix.openssh-dev
From: imor...@nas.nasa.gov (Iain Morgan)
Date: Tue, 22 Nov 2011 18:01:00 -0800
Subject: Re: Wrong permissions for $HOME
Roman,

I'm curious, when you were attempting to debug this, did you ever login
when prompted for a password? If you did and the client loglevel was set
to 'debug' or higher, you should have seen some messages which would
have indicated that it was an ownership or permissions issue with the
home directory.

As noted by others on the list, sshd does not send diagnostic messages
to an unauthenticated client which might help an attacker. However, once
you have authenticated by some other means (such as password
authentication), the server does send some diagnostic messages to the
client. These messages are not displayed by default, but are displayed
if the loglevel is set to 'debug.'

I'd also like to note that using -vvv generally is overkill. For most
problems, a single -v is sufficient. Using -vvv produces enough output
that it can sometimes make it difficult to spot the relevant messages.

--
Iain Morgan

--
Iain Morgan
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »