SysAdminDay

Eki
20
2009

BoKS – Getting -sorry- Answer After -suexec- Attempt

AccessControl1Web

If you are getting “Sorry” response after trying suexec, /etc/hosts file must be first place you are looking.

emreyasar@testserver:~> /opt/boksm/bin/suexec cat /etc/shadow

Sorry

Let’s look at /etc/hosts file..

emreyasar@testserver:~> cat /etc/hosts

127.0.0.1       localhost

192.168.1.20   testserver.ford.com.tr

10.10.100.2     testserver.ford.com.tr testserver


The IP address of BoKS Master server is 192.168.1.20

As you see there are 2 interfaces on the server. One of them (10.10.100.2) is on private (interlink, iscsi, etc..) network.

As you know, usually,  there are at least  3 columns at /etc/hosts file

IP_ADDRESS      CANONICAL_HOST_NAME         ALIASES

Here is the key:

If you set an alias ,which is as BoKS host database, to a private (non-reachable from BoKS Master server) interface, you won’t achieve to make suexec or other BoKS related operation on that server.

Conclusion:

Set hostname alias to an interface which is reachable from BoKS Master server at /etc/hosts file.

True /etc/hosts file must be like this:

emreyasar@testserver:~> cat /etc/hosts

127.0.0.1       localhost

192.168.1.20   testserver.ford.com.tr     testserver

10.10.100.2     testserver.ford.com.tr

Yaziyi gonderen Admin - Emre Yasar in: BoKS, Linux | Etiketler: , , , ,

Yorum yok »

RSS feed for comments on this post. TrackBack URL


Yorum yaz

  

Altyapi WP Temadown Wp Tr Temayapim TheBuckmaker Cevirmen Otel