The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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
Reply With Quote
Forum Sponsor