[ELDK] Permissions on /root directory keep ssh from working properly

Dave Rensberger David.Rensberger at ambientcorp.com
Thu Nov 6 21:02:28 CET 2008


Yes, I mean the user keys.   In a user-less system (i.e. everything is
root, which I suspect is quite common in DENX as in other embedded linux
systems), this doesn't work with the default permissions of 775 on
/root.

Not a big deal, but it did take us several hours to finally figure this
out here, so I thought if there's no other reason that people would want
/root be 775, maybe it would help someone in the future if it were
changed.

--Dave

>According to the dropbear documentation (see "man 8 dropbearkey"), the
>host keys are supposed to be placed in the /etc/dropbear/ directory.
>That's what we're using all the time in ouyr setups, and we never had
>any problems. And the permissions on the /etc/dropbear/ directory are
>usually 0755 in our systems, without problems either.

>Do you mean the permissions for the directory of the user  keys?  But
>that is ~/.ssh, i. e. in your case it would be /root/.ssh ?
>
>Best regards,
>
>Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
(null cookie; hope that's ok)


More information about the eldk mailing list