PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10
# 1  
Old 04-29-2008
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello,

I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems:

1. When I execute the command ping, I get weird results:


Code:
bash-3.00$ usr/sbin/ping localhost 
usr/sbin/ping: unknown host localhost

bash-3.00$ usr/sbin/ping 127.0.0.1
usr/sbin/ping: unknown host 127.0.0.1

bash-3.00$ usr/sbin/ping ip_address1
usr/sbin/ping: unknown host ip_address1

2. When I execute

Code:
bash-3.00$ svcs -x

I get:

Code:
svcs: Could not bind to repository server: repository server unavailable. Exiting.

3. When I try to sftp or ssh another machine

Code:
bash-3.00$ sftp ip_address1

bash-3.00$ ssh ip_address1

I receive the message:

Code:
Host key verification failed.

although I am able to ssh/sftp the machine as root

4. When I ftp another machine

Code:
bash-3.00$ ftp ip_address1

I get

Code:
unknown host or invalid literal address

5. If I telnet another machine:

Code:
bash-3.00$ telnet ip_address1

I receive

Code:
ip_address1: service name not available for the specified socket type

I need to add that all these commands work perfectly for root. I probably didn't copy some of the necessary configuration files/programs to the chrooted directory. But which ones?

Regards,
Przemek
# 2  
Old 04-29-2008
Helo.
Points 1, 4 and 5, copy system's /etc/hosts into the jail's etc/
Point 2, no idea Smilie
Point 3, check perms for the users' home inside the jail, specially $HOME/.ssh/known_hosts
Regards.
# 3  
Old 05-22-2008
Pls restart all services. Best is to perform a cold boot of your system first.
# 4  
Old 05-25-2008
Check contents and permissions of /etc/inet/hosts, /etc/inet/ipnodes and /etc/nsswitch.conf
# 5  
Old 05-26-2008
1st thing is, u have to give client ip address and client name in /etc/hosts file.
restart the all services.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Sendmail - relay Host unknown since adding dns

Hi ever since we´ve added the server in DNS, sendmail stopped working, but everything seems to be configured properly although in the mail logs we see: Jul 10 16:52:58 itc01 sendmail: t6AEqrHT005593: from=root, size=6, class=0, nrcpts=1, msgid=<201507101452.t6AEqrHT005593@itc01.headquarter.tmm>,... (3 Replies)
Discussion started by: fretagi
3 Replies

2. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

3. Solaris

Windows 7 Host Cannot ping Solaris 10 DNS on VM

Hello All, Host - Windows 7 64 BIT Guest OS - Solaris 10 64 on VMWARE workstation Problem : I can not ping solaris VM from my host OS. please suggest the solution. Host OS:ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : INPS01900LT ... (5 Replies)
Discussion started by: sunil_1111
5 Replies

4. Solaris

Classic: sendmail[pid]: My unqualified host name (hostname) unknown

Hi all, I'd like to disable sendmail permanently on my "new" 220R with freshly installed SunOS 5.10 because it prints annoying messages to the system console. Also I'm interested in how to fix the actual problem with unqualified host name. My unqualified host name (hostname) unknown; sleeping... (2 Replies)
Discussion started by: pseudocoder
2 Replies

5. IP Networking

ping can not recognize host but host command can

Hi, I have a weird problem. when ever I do ping command like for example ping unix.comI get the following message: # ping unix.com ping: unknown host unix.com but when I use host the computer is able to know the host. # host unix.com unix.com has address 81.17.242.186 unix.com mail is... (2 Replies)
Discussion started by: programAngel
2 Replies

6. Solaris

Unable to ping Solaris VM from Xp host

Hi All, I am using Vmware Workstation 6.0.3 build-80004. Guest OS: Solaris 10 Host OS : Win XP I am getting request time out when i am trying to ping from XP ( cmd line) to Solaris VM - I have assigned IP 192.168.50.5 in Solaris VM ( Hostname: Tower1) and it is in UP status. ... (4 Replies)
Discussion started by: saurabh84g
4 Replies

7. UNIX for Dummies Questions & Answers

unknown host

Hello all I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives. I've been a UNIX programmer for a while now but new to administration. I just installed SunOS 5.9 on my desktop ( i86pc) . Everything... (3 Replies)
Discussion started by: luft
3 Replies

8. UNIX for Advanced & Expert Users

How do I ftp to an unknown host?

after ftp. ftp.umass.edu, I get "UNKNOWN HOST" There is no prompt for username. What do I do so that I can ftp files out? Or even email, to an unknown host. (3 Replies)
Discussion started by: AllyJones
3 Replies

9. UNIX for Advanced & Expert Users

sendmail : 550 host unknown

Hi I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host? Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Discussion started by: mrsaint
29 Replies

10. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies
Login or Register to Ask a Question