cancel
Showing results for 
Search instead for 
Did you mean: 

NIS error

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

NIS error

Hi

I have configured NIS in HPUX 11.00.

Now i am getting following error when running "/var/yp/ypmake.

/var/yp/ypmake[570]: /usr/sbin/longfiles: Execute permission denied.

For NIS domain emdeng:

Building the passwd map(s)... /var/yp/ypmake[9]: /usr/sbin/makedbm: Execute permission denied.
ERROR (ypmake): in passwd build.
Building the group map(s)... /var/yp/ypmake[9]: /usr/sbin/makedbm: Execute permission denied.
ERROR (ypmake): in group build.
The hosts map(s) are up-to-date.
The networks map(s) are up-to-date.
The rpc map(s) are up-to-date.
The services map(s) are up-to-date.
The protocols map(s) are up-to-date.
The netgroup map(s) are up-to-date.
The aliases map(s) are up-to-date.
The vhe_list map(s) are up-to-date.
The publickey map(s) are up-to-date.
Building the netid map(s)... /var/yp/ypmake[6]: /usr/sbin/mknetid: Execute permission denied.
/var/yp/ypmake[6]: /usr/sbin/makedbm: Execute permission denied.
^GERROR (ypmake): in netid build.
The auto_master map(s) are up-to-date.
The auto_direct map(s) are up-to-date.

ypmake complete: errors encountered.


How to solve this problem.

It is very urgent, Please help me.


5 REPLIES
Pete Randall
Outstanding Contributor

Re: NIS error

And you're running this as whom?


Pete

Pete
Pete Randall
Outstanding Contributor
Solution

Re: NIS error

Also - what does "ll /usr/sbin/makedbm" return?


Pete

Pete
senthil_kumar_1
Super Advisor

Re: NIS error

Hi All,

I have changed the permission of the follwoing files,

root@lgapps:/root > chmod 554 /usr/sbin/makedbm
root@lgapps:/root > chmod 554 /usr/sbin/mknetid
root@lgapps:/root > chmod 554 /usr/sbin/makedbm

Then it was working fine.


But once again the permission of the below file has been changed to read automatically.

Ex:
-----------------------------------------
root@lgapps:/root > /var/yp/ypmake
/var/yp/ypmake[570]: /usr/sbin/longfiles: Execute permission denied.

For NIS domain emdeng:

The passwd map(s) are up-to-date.
The group map(s) are up-to-date.
The hosts map(s) are up-to-date.
The networks map(s) are up-to-date.
The rpc map(s) are up-to-date.
The services map(s) are up-to-date.
The protocols map(s) are up-to-date.
The netgroup map(s) are up-to-date.
The aliases map(s) are up-to-date.
The vhe_list map(s) are up-to-date.
The publickey map(s) are up-to-date.
The netid map(s) are up-to-date.
The auto_master map(s) are up-to-date.
The auto_direct map(s) are up-to-date.

ypmake complete: no errors encountered.

---------------
In above about i am seeing the message "/usr/sbin/longfiles: Execute permission denied."

Then i checked the permission of ""/usr/sbin/longfiles".

Ex:

root@lgapps:/root > ll /usr/sbin/longfiles
-r--r--r-- 1 bin bin 16384 Nov 6 1997 /usr/sbin/longfiles

i did not change the permission of the above file, then how it is being changed automatically.
Pete Randall
Outstanding Contributor

Re: NIS error

I see no proof that it wasn't 444 beforehand. Change it and see if it stays changed.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: NIS error

By the way, it is also possible that someone has modified /var/yp/ypmake. It's a simple shell script and someone, for whatever reason, could have added chmod commands to it - though I doubt it. I think someone changed these commands in /usr/sbin and, once you get them all changed back, they will remain that way.


Pete

Pete