1847887 Members
1499 Online
104021 Solutions
New Discussion

NIS / Services Problem

 

NIS / Services Problem

Good morning together,

i have a little problem on a HPUX Machine of a Customer.. we want to install a database there (versant) thats normaly no problem now after the installation we have to make a record in the /etc/services which we did. Still the Database gibts us an "unknown service" in the syslog.
We thought of the NIS to be the problem as the customer uses NIS to spare his User accounts and a ypcat -k services also gives us a reply of the service-maps. Now my question -> how can i see if our server uses that NIS reply and how can i tell him not to :).
They also use the NIS for UserAccounts on the Systems so in don´t wanna shut down the NIS client. Is there any other solution?

best regards
Pet
Wer meint gut zu sein hat es verpasst besser zu werden!
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: NIS / Services Problem

check /etc/nsswitch.conf file.

Re: NIS / Services Problem

thx for quick answer

well there is no /etc/nsswitch.conf

just some /etc/nsswitch.files .compact .nis

etc.
(as you see im clearly new to NIS) :(
Wer meint gut zu sein hat es verpasst besser zu werden!
Shaikh Imran
Honored Contributor

Re: NIS / Services Problem

Hi,
Pls Try authchk command
See the Man pages of authchk.

Regards,
I'll sleep when i am dead.
Hoefnix
Honored Contributor

Re: NIS / Services Problem

Hi,

Like mentioned by others its configured by nsswitch.conf.
This makes it still possible to have local accounts in the passwd. If you have done this, check if the same accounts do not exist in the NIS passwd.
You can check using the commands:
id oracle
ypcat passwd | grep oracle
cat /etc/passwd | grep oracle

If oracle exists in both passwd files (NIS and Local) check if they differ in uid?

HTH,
Peter