- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS question
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
04-23-2002 03:28 AM
04-23-2002 03:28 AM
I installed and configured NIS Master, Slave and all clients without problems. When I want to add a group on the Master server in SAM I go to 'Accounts for users and groups' and click on any of the icons 'Groups' or 'Local Users' or 'NIS Users' I am asked to enter the name of the password file used to build the NIS maps and the command used to build them. My question is - shall I always enter /etc/passwd or when clicked on 'Groups' in SAM shall I enter /etc/group?
Which command I should choose - make or ypmake (I would say 'ypmake')?
--
When I am on the master - in SAM in 'Networking and Communication' and 'Name Service Switch' (or /etc/nsswitch.conf) - shall I use local files as the first source? I have the same question for clients - shall I always use NIS as the first source and files as the second source? What about automounter - Local files or NIS?
Thanks a lot for your advice.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 04:44 AM
04-23-2002 04:44 AM
Re: NIS question
Most of the questions are answered in this document:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/27-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/27-toc.html&searchterms=nis&queryid=20020423-055148
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:13 AM
04-23-2002 05:13 AM
Re: NIS question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:21 AM
04-23-2002 05:21 AM
Re: NIS question
We have left all files /etc/passws /etc/group /etc/netgroup at same location. On server we uses file first on nsswitch.conf file so server will not stop booting if anything goes wrong. on slave and client we uses nis then files.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:40 AM
04-23-2002 05:40 AM
Re: NIS question
"Please enter the name of the password file used to build your NIS maps and select the command used to build them."
Command is clear - ypmake, but should the file be: /etc/passwd or /etc/group - although I am clicking on Group - SAM asks me for a password file - I tend to enter /etc/passwd - is this correct?
Anyway, when changing a user password on a client - does a user have to use yppasswd - because passwd does not give the possibility to change it (there is just some info).
Thanks once again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:47 AM
04-23-2002 05:47 AM
Re: NIS question
On a client the user should use the standard passwd command as it will contact the rpc.yppasswdd daemon on a NIS server.
If the user uses the yppasswd command & is NOT in NIS there will be no consequences and the /etc/passwd WILL be updated locally.
So users can do it either way.
And yes when SAM asks for the passwd file - give it /etc/passwd.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:50 AM
04-23-2002 05:50 AM
Re: NIS question
2) You can use the passwd command. At the end of a succesful password change it'll tell you something like .. "The NIS password has been changed on NIS master server.."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:54 AM
04-23-2002 05:54 AM
Re: NIS question
Supported configurations for passwd management are as follows:
passwd: files
passwd: files ldap
passwd: files nis
passwd: files nisplus
passwd: compat
passwd: compat AND
passwd_compat: nisplus
...and that's it. The prompt is returned.
NO POSSIBILITY TO CHANGE THE PASSWORD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:59 AM
04-23-2002 05:59 AM
Re: NIS question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:08 AM
04-23-2002 06:08 AM
Re: NIS question
Thanks but I do not think the problem is in my nsswitch.conf - anyway here it is (from a client):
(I added blank lines for a better readability)
hosts: nis [NOTFOUND=continue UNAVAIL=continue] files [NOTFOUND=continue U
NAVAIL=continue TRYAGAIN=continue] dns [NOTFOUND=return UNAVAIL=continue TRY
AGAIN=return]
aliases: nis [NOTFOUND=continue UNAVAIL=continue] files
automounter: files [NOTFOUND=continue UNAVAIL=continue]
group: nis [NOTFOUND=continue UNAVAIL=continue] files
netgroup: nis [NOTFOUND=return UNAVAIL=continue] files
networks: nis [NOTFOUND=return UNAVAIL=continue] files
protocols: nis [NOTFOUND=return UNAVAIL=continue] files
passwd: nis [NOTFOUND=continue UNAVAIL=continue] files
services: nis [NOTFOUND=return UNAVAIL=continue] files
rpc: nis [NOTFOUND=return UNAVAIL=continue] files
publickey: nis [NOTFOUND=return UNAVAIL=continue] files
automount: files [NOTFOUND=continue UNAVAIL=continue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:21 AM
04-23-2002 06:21 AM
Re: NIS question
On the client giving you trouble do
ypwhich
This should return either the master or slave NIS server.
If it does then do
ypcat passwd.byname
See if the user in question is in the map.
If not then do
pwck
on the client to check for problems with the local passwd file.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:24 AM
04-23-2002 06:24 AM
Re: NIS question
automount: files [NOTFOUND=continue UNAVAIL=continue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:28 AM
04-23-2002 06:28 AM
Re: NIS question
automounter: files [NOTFOUND=continue UNAVAIL=continue]
automount: files [NOTFOUND=continue UNAVAIL=continue
The reason why is that these 2 are the only ones that has "files" as it's first preference and if those files are not setup right, you might have the problem that you're seeing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:39 AM
04-23-2002 06:39 AM
Re: NIS question
ypwhich returnms correctly thename of the NIS master and ypcat passwd.byname lists all the user, incl. the one in question. Anyway, I am getting this message on all clients for any user. yppasswd does the job but I would like to use passwd.
S.K.
Missing '[' was just due to the cut and paste thing... it is there...
I use automount...
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:54 AM
04-23-2002 06:54 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 08:00 AM
04-23-2002 08:00 AM
Re: NIS question
Sk is right passws first checks the file then nis.
try changing your nsswitch.conf file on client to just
passwd: nis file
It works for me.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 08:05 AM
04-23-2002 08:05 AM
Re: NIS question
I did not stop believing in you, did I :-)))
Thanks very much. It really helped.