ts-7000
[Top] [All Lists]

Re: [ts-7000] Changing root password on TS-7800 "fastboot" environment

To:
Subject: Re: [ts-7000] Changing root password on TS-7800 "fastboot" environment
From: Tom Panzarella <>
Date: Tue, 6 Jan 2009 09:38:20 -0500
Hi Ted,

Thank you. You put me on the right path. For the benefit of others on  
the list, here is what I did specifically to fix my issue:

1. Per Ted's suggestion below, I changed the invocation of 'telnetd'  
in /linuxrc-fastboot to look like:

/sbin/telnetd -l /mnt/root/bin/login

This enabled telnet to prompt me for a password when logging in.

2. Upon first attempt, I could not log in with telnet as it gave the  
following error:

Cannot execute /bin/bash: No such file or directory

So, I created a symlink:

/bin/bash -> /mnt/root/bin/bash

Then persisted this change with `save'.

3. Next, to get sshd to work, I had to create this symlink:

/bin/login -> /mnt/root/bin/login

And persist it with `save'. This was needed b/c my /etc/ssh/ 
sshd_config had "UseLogin yes" set.

With these changes in place, I have a consistent ssh login set up  
between fullboot and fastboot on the 7800.

Thanks again for your help Ted. I'm up and running.

Thanks,
Tom.

On Jan 5, 2009, at 8:09 PM, Theodore A. Roth wrote:
>
> From: http://man-wiki.net/index.php/1:busybox
>
>      telnetd
>          telnetd    [OPTION]
>
>          Telnetd listens for incoming TELNET connections on PORT.   
> Options:
>
>                  -p PORT listen for connections on PORT (default 23)
>                  -l LOGIN        exec LOGIN on connect (default /bin/ 
> sh)
>                  -f issue_file   Display issue_file instead of /etc/ 
> issue
>
> The /sbin/telnetd program in the initrd is a link to busybox. If you
> change your linuxrc-fastboot file to use this command:
>
>  /sbin/telnetd -l /mnt/root/bin/login
>
> then you should be asked for a password when logging in via telnet.
> Since telnetd from busybox defaults to /bin/sh, I suspect that is why
> you are not asked for a passed.
>
> You might need to add "pts/0" to the /etc/securetty file if you get
> the "Login incorrect" message without being asked for a password when
> logging in as root. [ Ref:
> http://tldp.org/LDP/LGNET/issue50/tag/38.html ]
>
> When you are running from initrd and have a prompt, can you grep for
> root in the /etc/passwd and /etc/shadow files? Is it the passwd set?
> Are you using the /bin/passwd program to set the password? Have you
> tried setting the root password once you have exited from initrd and
> are running the full system?
>
> Ted Roth


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU