We help IT Professionals succeed at work.

What are the permissions on /etc/hosts after installing the OS Aix 5.3?

LindaC
LindaC asked
on
Hi experts.

What are the permissions on /etc/hosts after installing the OS Aix 5.3?
Comment
Watch Question

Most Valuable Expert 2013
Top Expert 2013

Commented:
Hi,

permissions are 644 or "-rw-rw-r--"

Owner: root Group: system

wmp

Author

Commented:
I doubt it because in a disaster recovery scenario the System admin had to install the Os from scratch and the oracle listener could not come up because the /etc/hosts did not have permissions to see the hosts file.  
The system admin then changed the permissions and the listener was brought up succesfully.
Most Valuable Expert 2013
Top Expert 2013

Commented:
Sorry, permissions are "664"


Just a typo!!
Most Valuable Expert 2013
Top Expert 2013

Commented:
>> I doubt it <<

Well, I don't know your recovery methods nor do I know your System admin,
but with all the countless AIX installations (or also "recoveries" from mksysb or TSM)
which I did so far I never saw other permissions than the ones I posted.

wmp

Author

Commented:
Can it be possible that after applying the following the /etc/hosts files permission dis not allowed the oracle user to read ?

nonum:/home/oracle>instfix -i | grep AIX_ML
    All filesets for 5.3.0.0_AIX_ML were found.
    All filesets for 5300-01_AIX_ML were found.
    All filesets for 5300-04_AIX_ML were found.
    All filesets for 5300-03_AIX_ML were found.
    All filesets for 5300-05_AIX_ML were found.
    All filesets for 5300-06_AIX_ML were found.
    All filesets for 5300-07_AIX_ML were found.
    All filesets for 5300-08_AIX_ML were found.
    All filesets for 5300-09_AIX_ML were found.
    All filesets for 5300-02_AIX_ML were found.
    All filesets for 5300-10_AIX_ML were found.
    All filesets for 5300-11_AIX_ML were found.
    All filesets for 5300-12_AIX_ML were found.
nonum:/home/oracle>
Most Valuable Expert 2013
Top Expert 2013
Commented:
Well,

TL 11 of AIX 5.3 is the last one I installed before switching to 6.1, and up to this TL permissions remained always the same (see above).

Equally, AIX 6.1 up to TL 7 and AIX 7.1 (TL 1) have those permissions.

Additionally, I did a search in IBM support just now - there's no hint on /etc/hosts.

TCB (see /etc/security/sysck.cfg) and aixpert (see /etc/security/aixpert/core/aixpertall.xml and ...aixpertals.xml) don't touch /etc/hosts.

So the only remaining things (IMO) are a yet undiscovered bug in 5.3 TL 12 or some additional "system hardening" measures from your side which you're no longer aware of, for what reasons ever.

wmp

I think, your sysadmin might have tricked you.  After installling Aix, the /etc/hosts is empty with no entries about the server(s).  So, listener have no clue about the IP address or hostname, wont come up.
After the host entries are added by sysadmin, the LISTENER can come up without any problems.

Its not the permissions that caused this issue, rather contents of /etc/hosts.

Author

Commented:
WE saw (me and system admin at disaster recovery scenario) that the hosts file did not have any permissions for oracle user.

I askjed for the permissions to be changed.

The permissions resembled the hostmibd.conf, so what I think he did , is that with all the stress he had, he cp the hostmibd.conf to hosts and started to filled with the  ip's.  So when the permissions chenged , the listener was up very fast.

nonum:/etc>ls -ltr hos*
-rw-rw-r--    1 root     system         1895 Sep 21 2009  hosts.lpd
-rw-r--r--    1 root     system         2049 Sep 21 2009  hosts.equiv
-rw-r-----    1 root     system         1968 Sep 21 2009  hostmibd.conf
-rw-rw-r--    1 root     system         2077 Dec 21 2009  hosts.bak
-rw-rw-r--    1 root     system         2097 Apr  1 2011  hosts
nonum:/etc>

Author

Commented:
Thanks for the information.