The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > 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 3 Weeks Ago 11:25 PM
unknown host luft UNIX for Dummies Questions & Answers 3 03-04-2005 10:48 AM
How do I ftp to an unknown host? AllyJones UNIX for Advanced & Expert Users 3 05-23-2003 01:52 AM
sendmail : 550 host unknown mrsaint UNIX for Advanced & Expert Users 29 11-13-2001 09:35 AM
QNX host cannot ping SCO host, vice versa gavon IP Networking 2 08-20-2001 05:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
  #2 (permalink)  
Old 04-29-2008
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 05-22-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 338
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Pls restart all services. Best is to perform a cold boot of your system first.
Reply With Quote
  #4 (permalink)  
Old 05-25-2008
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 59
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Check contents and permissions of /etc/inet/hosts, /etc/inet/ipnodes and /etc/nsswitch.conf
Reply With Quote
  #5 (permalink)  
Old 05-25-2008
Registered User
 

Join Date: May 2008
Posts: 49
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
1st thing is, u have to give client ip address and client name in /etc/hosts file.
restart the all services.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ascii eof autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive grep unique inaddr_any inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix com unix forum unix forums unix interview questions unix mtime unix simulator unix.com vi tab size vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 12:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101