cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX NIS auto_master

AZayed
Super Advisor

HP-UX NIS auto_master

Dears,
Good day,

 

I'm trying to build auto_master and auto_home map pages. I created auto_home and added it to my NIS now there is auto.home map but the issue is I cannot configure it. I need to configure it only on NIS master. So, I thought about the following:

 

in my /etc/NIS/auto_master :

+auto_home

 

in my /etc/NIS/auto_home

/rhome/* -rw,nosuid NFSSRV:/export/home/&

 

But this not working becuase after the ypmake I get the following on NIS master :

 

# ypcat auto.master

#
# ypcat auto.home
-rw,nosuid      NFSSRV:/export/home/&
#

What am I doing wrong and why auto.master is empty?

 

Thanks

Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
5 REPLIES
Dave Olker
HPE Pro

Re: HP-UX NIS auto_master

The fact that you have your maps in /etc/NIS tells me you're using a non-default map location. Did you take care to ensure you updated all the NIS configuration files to reflect this non-default directory?

 

Here's a quick test.  Try doing a "touch /etc/NIS/auto_master" followed by a "ypmake" and see if it rebuilds the auto.master map.  If not, I'd surmise your NIS configuration is not setup correctly to recognize the non-default map directory.

 

Regards,

 

Dave

AZayed
Super Advisor

Re: HP-UX NIS auto_master

Hi, 

 

I'm sure it's reading from /etc/NIS also, I removed the /etc/auto_master 

 

Thanks 

Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
AZayed
Super Advisor

Re: HP-UX NIS auto_master

Dears,

Good day,

 

Is there any way to do it from single map? I want to do it like this :

 

On NIS Master

/etc/NIS/auto_master

/rhome +auto.home -nobrowse

 

/etc/NIS/auto_home

* NISSERVER:/export/home/&

 

--- but this is not working

 

the only workaround is :

 

/etc/NIS/auto_home

* NISSERVER:/export/home/&

 

on Client :

 

/etc/auto_master

/rhome auto_home -nobrowse

 

/etc/auto_home

+auto.home

 

---- but this will make me do it on all UNIX / Linux NIS clients

 

Is there any way to do it from NIS ??

 

Thanks

 

Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
cvergine
Occasional Visitor

Re: HP-UX NIS auto_master

Hello , I have this issue:

 

Users created on NIS master can't log on one of the NIS clients . One error is that cannot create the /home/username/.ssh directory .

 

/home exist on client but don't have permission to write .  I try to change manually with chmod , and the message is :

 

 

chmod: can't change /home: Read-only file system

 

How can I change this ? 

 

 

[/etc]root@server>cat auto_master
## Configured using SAM by root on Wed Oct 11 09:29:58 2006
/home auto.home -nobrowse,nosuid
/net -hosts -nosuid,nobrowse
/- auto.direct

 

Thank you in advance .

Carlos. 

 

 

AZayed
Super Advisor

Re: HP-UX NIS auto_master

Hi, 

Sorry for late reply 

 

Please provide us with auto.home map. 

 

 

Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.