Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Welcome to unknown" login screen help fix

Status
Not open for further replies.

ase2dais

Technical User
Dec 21, 2001
58
US
I have a newly configured ultra 5, during setup I gave it a host name. However, everytime I login, I get this annoying "Welcome to unknown" screen, instead on its hostname. I went to diff. files to give it a hostname, and it still does it. (files changes are namely, /etc/hostname, /etc/hostname.hme0, /etc/hosts. Are there others?)
 
>>Are uname -n or hostname returning "unknown"?

reply: yes I am.
 
Files to edit/change hostname manually
--------------------------------------
/etc/hosts
/etc/nodename
/etc/hostname.xxn (xxn = network interface, such as hme0)
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes (if file exists and if hostname entry exists)
--
Andy
 
andy
I have populate those files and still the same problem. any other thoughts ?
 
there could be an rc script borking it...

Code:
grep hostname `find /etc/init.d -type f`

Just to be thorough, you may have to check /etc/rc2.d and /etc/rc3.d as well. --
Andy
 
borking ?
what are we looking for ?

here's the find commnand
,start
/etc/init.d/ANNOUNCE
/etc/init.d/MOUNTFSYS
/etc/init.d/PRESERVE
/etc/init.d/README
/etc/init.d/RMTMPFILES
/etc/init.d/audit
/etc/init.d/buildmnttab
/etc/init.d/cachefs.daemon
/etc/init.d/cachefs.root
/etc/init.d/cacheos
/etc/init.d/cacheos.finish
/etc/init.d/coreadm
/etc/init.d/cron
/etc/init.d/devfsadm
/etc/init.d/devlinks
/etc/init.d/dhcpagent
/etc/init.d/drvconfig
/etc/init.d/inetinit
/etc/init.d/inetsvc
/etc/init.d/keymap
/etc/init.d/ldap.client
/etc/init.d/mkdtab
/etc/init.d/network
/etc/init.d/nfs.client
/etc/init.d/nfs.server
/etc/init.d/rpc
/etc/init.d/nscd
/etc/init.d/rootusr
/etc/init.d/savecore
/etc/init.d/standardmounts
/etc/init.d/sysetup
/etc/init.d/syslog
/etc/init.d/ufs_quota
/etc/init.d/utmpd
/etc/init.d/acct
/etc/init.d/perf
/etc/init.d/autoinstall
/etc/init.d/sysid.net
/etc/init.d/sysid.sys
/etc/init.d/afbinit
/etc/init.d/apache
/etc/init.d/asppp
/etc/init.d/autofs
/etc/init.d/uucp
/etc/init.d/dhcp
/etc/init.d/buttons_n_dials-setup
/etc/init.d/dtlogin
/etc/init.d/llc2
/etc/init.d/init.wbem
/etc/init.d/ncakmod
/etc/init.d/ncalogd
/etc/init.d/xntpd
/etc/init.d/spc
/etc/init.d/initpcmcia
/etc/init.d/pcmcia
/etc/init.d/power
/etc/init.d/lp
/etc/init.d/init.dmi
/etc/init.d/init.snmpdx
/etc/init.d/slpd
/etc/init.d/sendmail
/etc/init.d/volmgt
/etc/init.d/IIim
/etc/init.d/ab2mgr
#

my rc2.d
,start.
K07dmi S69inet S74xntpd S90wbem
K07snmpdx S70uucp S75cron S91afbinit
K16apache S71ldap.client S75savecore S92volmgt
K28nfs.server S71rpc S76nscd S93cacheos.finish
README S71sysid.sys S80PRESERVE S94ncalogd
S01MOUNTFSYS S72autoinstall S80lp S95IIim
S05RMTMPFILES S72inetsvc S80spc S96ab2mgr
S20sysetup S72slpd S85power S99audit
S21perf S73cachefs.daemon S88sendmail S99dtlogin
S30sysid.net S73nfs.client S88utmpd
S40llc2 S74autofs S89bdconfig
S47asppp S74syslog S90solaris

my rc3.d
.start.
README
S15nfs.server
S50apache
S76snmpdx
S77dmi

whats up ?


 
#find /etc/init.d type -f
find: bad option -f
find: path-list predicate-list
 
okay , regroup the grep hostname .... cmd produce something noteworthy.. the whole line
is too long but here the line that make some sense, for the box is a dhcp client:

grep hostname 'find /etc/init.d type -f'


.....blah blah blah and then

/etc/init.d/network:# If DHCP was used on a primary interface then set the hostname
/etc/init.d/network:# that was returned. If no hostname was returned, set the name
/etc/init.d/network:# to be "unknown". The hostname must be set to something, because
/etc/init.d/network: "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
/etc/init.d/network: "rarp") hostname=`/sbin/hostconfig -h -p bootparams`
/etc/init.d/network: while [ -z "$hostname" -a ! -f /etc/.UNCONFIGURED -a /etc/init.d/network: hostname=`/sbin/hostconfig -h -p bootparams 2>&1 /etc/init.d/network: "none") hostname="`shcat /etc/nodename 2>/dev/null`" ;;
/etc/init.d/network:if [ -z "$hostname" ]; then
/etc/init.d/network: hostname="unknown"
/etc/init.d/network:/sbin/uname -S $hostname
/etc/init.d/rpc: hostname=`echo "$_INIT_UTS_NODENAME" | /usr/bin/cut -d. -f1 | /etc/init.d/rpc: if [ -d /var/nis/data -o -d /var/nis/$hostname ]; then
/etc/init.d/ncakmod:# Function used to parse the interface names from /etc/hostname.* entries
/etc/init.d/ncakmod: '*') configinterfaces="`echo /etc/hostname.*[0-9] /etc/init.d/ncakmod: /bin/sed 's/.etc.hostname.//g'`"
/etc/init.d/ncakmod: interface="`echo /etc/hostname.$i*[0-9] /etc/init.d/ncakmod: 's/.etc.hostname.//g'`"
 
nachos! I GOT IT, the /etc/init.d/network file has a line that if no hostname set it to unknown. chged 'unknown' to my hostname and it worked. However getting the desktop unusually long and lost my CDE dashboard, so I changed everything back to the way it was, and maybe will give this host a static IP, instead of dhcp. so that should be the fix for it.

I will le tyou know, thks for hanging it there.

ase
 
Hi What you need to do is create a startup script that resets your hostname
some thing like this

HOSTNAME=`cat /etc/nodename`

echo "Setting hostname to $HOSTNAME... \c"
uname -S $HOSTNAME
echo "Done."
 

Maybe this might help...

I had similar problem after I installed Solaris 8. My CDE login screen kept showing me host unknown. Even if I change all the hosts files manually, after the reboot I would end up getting the same problem.

SOLUTION
=========

I ran sys-unconfig. Reconfigured my network settings. I realized that I had static IP assigned to my Intel system and I had selected DHCP at the same time. Once I selected no to DHCP, finished configuring network....IT WORKED!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top