The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
connection to localhost:10.0 host broken (explicit kill or server shutdown) bache_gowda UNIX for Advanced & Expert Users 5 06-28-2008 02:25 AM
unknown host luft UNIX for Dummies Questions & Answers 3 03-04-2005 02:48 PM
How do I ftp to an unknown host? AllyJones UNIX for Advanced & Expert Users 3 05-23-2003 04:52 AM
sendmail : 550 host unknown mrsaint UNIX for Advanced & Expert Users 29 11-13-2001 01:35 PM
QNX host cannot ping SCO host, vice versa gavon IP Networking 2 08-20-2001 08:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-29-2008
Przemek Przemek is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
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 (permalink)  
Old 04-29-2008
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Helo.
Points 1, 4 and 5, copy system's /etc/hosts into the jail's etc/
Point 2, no idea
Point 3, check perms for the users' home inside the jail, specially $HOME/.ssh/known_hosts
Regards.
  #3 (permalink)  
Old 05-22-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,060
Pls restart all services. Best is to perform a cold boot of your system first.
  #4 (permalink)  
Old 05-25-2008
seg seg is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2003
Posts: 260
Check contents and permissions of /etc/inet/hosts, /etc/inet/ipnodes and /etc/nsswitch.conf
  #5 (permalink)  
Old 05-26-2008
arjunreddy3 arjunreddy3 is offline
Registered User
  
 

Join Date: May 2008
Posts: 69
1st thing is, u have to give client ip address and client name in /etc/hosts file.
restart the all services.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0