how to login root without passwd in solaris trough telntet
What are you trying to achieve here?
how about using the rhosts file configured?
ssh would be a better option...
Of course, everyone will support ssh, but our dear friend is just querying about telnet, i guess so
Iam asking knowledge purpose
i don't no procedure,can u helpme procedure without passwd how to login telnet users?
Instead of spawning a telnet process, spawn a shell and send the rest of the commands.
spawn "/bin/sh"
send "telnet $HOSTNAME\r"
sleep 1
expect "ogin"
send "$username\r"
expect "Password"
send "$password\r"
send "\r\r"
etc...
thanks dear
which file i have write this one
this is scripting if there is any chance modify to file without passwd login to telnet user
I believe rhosts+telnet is what the OP is looking for. Here's Sun's document of rhosts, that should be sufficient to explain its use.
rhosts(4) � trusted remote hosts and users (man pages section 4: File Formats) - Sun Microsystems