[SunHELP] Automount Woes

Howard Hurst howard.hurst at UnitedAdvertising.co.uk
Fri Jan 17 05:43:42 CST 2003


Right, this is probably just me having a "Friday funny" and something really
obvious.... I hope so anyway.

I'm building a new NIS master server (Solaris 8) to replace our ancient
current one (running Solaris 2.6). I've tried looking at our old master but
to be honest, it's been tinkered with so much over the years  a lot of it
doesn't make any sense. The nis files are all over the place! I'd like to do
a fresh clean install on the new server that I understand.

On the new server, NIS itself is working ok - I can log onto client servers,
using my new NIS master. It's just the home directories I'm having troubles
with...

I'm trying to setup all NIS users with the (automounted) home directory of
"/homedir/servername/username" rather than "/home/username". My reason for
doing this is that we've got lots of scripts referencing
"/homedir/servername" and I'd rather not have to go round changing them all
to "/home".

Can someone please point me in the right direction as to what files I should
be changing on the NIS master to get my server to do this? On the master,
should I be changing the automount files under /etc or the NIS ones that
I've put under the /var/yp/nis_files directory. I assume it's the one's
under /var/yp/nis_files I should be changing?

# cat /etc/auto_home
# Home directory map for automounter
#
# +auto_home
*       servername:/export/home/&

# cat /var/yp/nis_files/auto_home
# Home directory map for automounter
#
# +auto_home
*       servername:/export/home/&

# cat /etc/auto_master
# Master map for automounter
#
# +auto_master
/net            -hosts          -nosuid,nobrowse
/home           auto_home       -nobrowse
/xfn            -xfn

# cat /var/yp/nis_files/auto_master
# Master map for automounter
#
# +auto_master
/net            -hosts          -nosuid,nobrowse
/home           auto_home       -nobrowse
/xfn            -xfn

Any kind of help would be appreciated. The more I try and figure it out, the
more confused I get. I need someone to inspire me!

Thanks,

Howard.

howard.hurst at unitedadvertising.co.uk
United Advertising Publications Plc. Poole BH15 1LL, UK
http://www.unitedadvertising.co.uk
______________
IMPORTANT: Any views or opinions are solely those of the author
and do not necessarily represent those of United Business Media.
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. If you are not the intended recipient of this message,
please do not read, copy, use or disclose this communication and
notify the sender immediately. It should be noted that any review,
retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.
IMPORTANT. Any views or opinions are solely those of the author and do not necessarily represent those of United Business Media. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or  taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.


More information about the SunHELP mailing list