- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to setup nsswitch.conf
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
12-19-2003 03:13 PM
12-19-2003 03:13 PM
How to setup nsswitch.conf
Is any one have how to setup nsswitch.conf to lookup multiple nis domains for user and group. I made ypbind to bind to two domains and tried the following in nsswitch.conf but it is not working.
passwd: nis(domain=engg) nis(domain=sales)
Any help is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 04:09 PM
12-19-2003 04:09 PM
Re: How to setup nsswitch.conf
Well I wcan suggest you a workaround but not a solution. Make the entries in the /etc/nsswitch.conf as follows,
passwd: files
(Before doing this do a
cp /etc/nsswitch.conf /etc/nsswitch.conf.nis
cp /etc/nsswitch.conf /etc/nsswitch.files )
And add all the NIS users to the /etc/passwd file from both of the NIS Domains. Now define a if condition in the /etc/profile such that if a user that belongs to NIS domain1 ,logs in to the system it should do the follwoing,
configure ypbind such that it binds to NIS Domain1 and do a
cp /etc/nsswitch.conf.files /etc/nsswitch.conf
and at the end of /etc/profile add,
su - username
And ofcourse the user will be prompted for the password again.
Configure similarly for NIS Domain2 with in the if loop.
However this method has practical limitations for instance if multiple users try to login at a given point of time you might run into difficulties.
If it sounds stupid to you feel free to hit me on my face when I meet you on monday.
But, I am pretty sure our forums Gurus can give you a better solution ;-)
Enjoy the weekend
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2003 08:35 PM
12-21-2003 08:35 PM
Re: How to setup nsswitch.conf
-Karthik S S
No points for this please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 04:50 AM
12-22-2003 04:50 AM
Re: How to setup nsswitch.conf
What i want is since nsswitch.conf has machanism to switch from say hosts from files to nis then to dns using notfound=continue keywords, is there any way to specy multiplr nis entries so that if a user is not part on domain (notfound) then process should switch to the next avialable nis domain(continue)
Any help is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 05:30 AM
12-22-2003 05:30 AM
Re: How to setup nsswitch.conf
It would not take much effort to integrate NIS into it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 05:20 PM
12-22-2003 05:20 PM
Re: How to setup nsswitch.conf
But I can't see the script.
Thanks,
Karthik S S