No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Can not Telnet or FTP to N2000 Solaris server because of wrong home directory of root user

Publication Date:  2012-07-25 Views:  39 Downloads:  0
Issue Description
Customer reported that he cannot telnet or FTP to the N2000 Solaris Server.
OS: Solaris 10
N2000 V200R011C03B036
Alarm Information
Null.
Handling Process
First, checking if telnet and FTP services are working, result is that both are working.
bash-3.00# svcs | grep telnet
online     May_22   svc:/network/telnet:defau
bash-3.00# svcs | grep ftp
online     May_22   svc:/network/ftp:default
Trying to telnet then checking /var/adm/messages
bash-3.00# more /var/adm/messages | grep telnet
May 22 14:51:06 N2000Server inetd[10062]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/telnet:default (chdir: No such file or directory)
Checking /etc/passwd for root user:
#more /etc/passwd | root
root:x:0:0:Super-User:n:/sbin/sh
The home directory of root user is set to n which is an invalid path, changing it using Vi editor to /, then check again, both problems are solved for telnet and FTP.
Root Cause
The Home directory of root user in /etc/passwd was change to an invalid path, this causes OS to fail to set credentials for the inetd_start method of FTP/Telent instances. 
Suggestions
Checking messages at /var/adm/messages are so useful in Solaris troubleshooting.

END