- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS and passwd
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
08-10-2003 09:39 PM
08-10-2003 09:39 PM
I configured NIS on hpux11. As superuser when I try to invoke the passwd (cmd line) for some user, it asks for the old passwd. When accessed through SAM it doesnt ask for the same.
Is there any patch available or am I missing something here.
thanks,
Umapathy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 09:54 PM
08-10-2003 09:54 PM
Re: NIS and passwd
Try /sbin/passwd instead of /bin/passwd or /usr/bin/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:03 PM
08-10-2003 10:03 PM
Re: NIS and passwd
I tried that too. It says Invalid login name. The login name is not in /etc/passwd but in /etc/nispw/passwd which I had created for NIS users alone.
How I can make /sbin/passwd to pick up users from NIS? Or how the root can change passwds of other users in NIS environment.
thanks,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:27 PM
08-10-2003 10:27 PM
Re: NIS and passwd
I don??t know NIS, but perhaps this can help you:
You say that SAM doesnt ask for the old passwd, so try to do it again with SAM and then click "Options" --> "View SAM Log", maybe you can find what command was used by SAM.
Only an idea.
Regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:27 PM
08-10-2003 10:27 PM
Re: NIS and passwd
# /usr/bin/yppasswd
do anything ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:29 PM
08-10-2003 10:29 PM
Re: NIS and passwd
Have a look at this posting as well. Did you look at the 'sam viewer log'?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcb1072106351d5118fef0090279cd0f9,00.html
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:53 PM
08-10-2003 10:53 PM
Re: NIS and passwd
/etc/nsswitch.conf
passwd: nis
to let all those trying to get passwd use NIS.
Also I remember "+" entry in /etc/passwd (to preserve local users "root" etc and also use NIS passwd). In that case nsswitch.conf should
look like this:
passwd: files nis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 10:55 PM
08-10-2003 10:55 PM
SolutionTake a look at next doc,
DocId: KBRC00007957
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062908900
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 11:51 PM
08-10-2003 11:51 PM
Re: NIS and passwd
Michael, I tried yppasswd. It asks for the old passwd again.
Zeev,
cat /etc/nsswitch.conf
passwd: files [NOTFOUND=continue UNAVAIL=continue] nis [NOTFOUND=return TRYAGAIN=return]
group: files [NOTFOUND=continue UNAVAIL=continue] nis [NOTFOUND=return TRYAGAIN=return]
hosts: files [UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=return TRYAGAIN=return]
aliases: files nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
automounter: files nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
netgroup: files nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
networks: files nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
services: files nis [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
Is this setup correct. Can you explain that + in /etc/passwd a little bit. Where can I find the info.
Robert, thanks for the doc. So effectively I cant use the same age old passwd as root :).
thanks,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 12:09 AM
08-11-2003 12:09 AM
Re: NIS and passwd
The + in the passwd file, is used for NIS users. If you do not add the + before a user NIS will think it is a local user.
local user
rjgo:VxnlhxewryhOo:104:20:Robert-Jan Goossens,,,:/home/rjgo:/usr/bin/ksh
NIS user
+abhs::::::
Hope it helps.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 12:45 AM
08-11-2003 12:45 AM
Re: NIS and passwd
Say nistest1 in /etc/nispw/passwd as
nistest1:NS03pRQkpDoQQ:225:101:,,,:/home/nistest1:/usr/bin/ksh
and /etc/passwd as
+nistest1::::::
thanks,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 12:58 AM
08-11-2003 12:58 AM
Re: NIS and passwd
Quote Zeev
____
2)go to /var/yp,see Makefile it has definitions,for example ALL_MAPS to build 'em all.I'd however just ignore messages from ypmake that it can't find map sources for hosts..etc (whatever you want use with NIS - define in /etc/nsswitch.conf WITHOUT "nis" of course).
_____
Hope it helps,
Robert-Jan.