- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS & User Home Directory on a different Serve...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 02:28 AM
03-17-2004 02:28 AM
Note : Logging into each server and manually creating the home directory is not an option for me.
Thanks
Lenin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 02:43 AM
03-17-2004 02:43 AM
SolutionIt's really not very complicated.
1) On each target host, create a skeleton directory structure to hold prototypes for .profile, .dtprofile, etc. for each user.
Let's call it /root/skel/User1
Now for each new user after adding to passwd/group:
remsh ${REMHOST} "mkdir /home/${NEWUSER}"
remsh ${REMHOST} "find /root/skel/User1 -print | cpio -pudvm /home/${NEWUSER}/"
remsh ${REMHOST} chown -R ${NEWUSER}:${NEWGROUP} /home/${NEWUSER}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 02:52 AM
03-17-2004 02:52 AM
Re: NIS & User Home Directory on a different Server.
Thanks for the quick response. However as I am green in the NIS admin part I would like some details on what you meant by "having automounted /home directories with NIS managing the automount maps."
and how can I implement it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:06 AM
03-17-2004 03:06 AM
Re: NIS & User Home Directory on a different Server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:15 AM
03-17-2004 03:15 AM
Re: NIS & User Home Directory on a different Server.
vi /etc/exports file and enter some file system to be exported /home
then type in exportsfs -a
have a look here for more info
http://www.docs.hp.com/hpux/pdf/B1031-90043.pdf
on your remote machine SERVER B in the root dir create a directory called allhomes
vi the /etc/fstab on the last line
add something like
SERVER A:/home /allhomes nfs rw,suid 0 0
and type mount -a
this will get you going, have a read of the docs.
Hope this helps
Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:24 AM
03-17-2004 03:24 AM
Re: NIS & User Home Directory on a different Server.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/3-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/3-toc.html&searchterms=NIS%7cManaging&queryid=20040317-091312
but I really suggest that you get a copy of the O'reilly book "Managing NFS and NIS". It will tell you everything you need to know.
Finally, unless you have some compelling reason to learn NIS, you would be better served to learn LDAP. NIS (or NIS+) is not a long-term solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:30 AM
03-17-2004 03:30 AM
Re: NIS & User Home Directory on a different Server.
Thanks for you answers.
Lenin