Dan Nicholson wrote:
> On 4/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>   
>>  I just tried moving .ssh to / and also creating /root/.ssh and I get the
>> same result
>>  The reason is because when I start bash my UID is not a name just "0".
>>
>>  If I run a "whoami" it says "cannot find username for UID 0"
>>     
>
> That sounds bad. I don't think this is really an issue with ssh. Are
> btmp, utmp, wtmp setup correctly? See the end of the page below and
> make sure the permissions are set correctly.
>
> http://www.linuxfromscratch.org/lfs/view/stable/chapter06/createfiles.html
>
> Also, is /etc/passwd readable? It should have 644 permissions.
>
> --
> Dan
>   
Hmmm... the question becomes one of "how does it know if you are logged 
in?".

Without researching it myself, the *tmp route is one possibility. With a 
userid of 0, it could grep passwd... obviously it's not doing that or it 
would have found root. Try executing the appropriate /etc/profile, 
bashrc, and such files. Maybe the variables there, such as $LOGNAME (or 
equivalents) are the method used?

If I had known you really needed a login, I would not have suggested openvt.

HTH
--
Wit
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to