- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NIS password...
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
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
05-05-2003 09:42 AM
05-05-2003 09:42 AM
I've a little problem here, with my HP-UX 11 box.... When a user ask the system to change is password with the command "passwd" the system said "Changing password for
I've added into my nsswitch.conf file those two lines:
passwd: files nis
group: files nis
But even with that it stay ask the users for an NIS password.... How can I tell the system to always take local passwd file instead of the NIS??
Thanks
Jonathan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 09:53 AM
05-05-2003 09:53 AM
Re: NIS password...
$ passwd -r files
.. if you want to change the password on the local /etc/passwd file.
$ man passwd
for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 12:18 PM
05-05-2003 12:18 PM
Re: NIS password...
/usr/bin/passwd will look for methods of authentication on the system beyond /etc/passwd, and change auth by the correct mechanism for the auth type.
/sbin/passwd is a static binary made to modify /etc/passwd only. I use this command over /usr/bin/passwd as root of course by modifying my path to look in /sbin before /usr/bin, and have had rare instances where I have showed users this command over /usr/bin. However, I would never recommend doing this, as the standard yppasswd also pushes new maps, where /sbin/passwd does not, and neither does passwd -r.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 06:58 AM
05-06-2003 06:58 AM
Re: NIS password...
What I wanna know is how can a user change is own passwd by typing only "passwd" and not "passwd -r files" each time he want to change it??? How can I reload the nsswitch.conf file?? And I don't wanna make a script to do that?? I'm sure I can change the config of the system to do it that way???
Thanks
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 07:32 AM
05-06-2003 07:32 AM
Re: NIS password...
To do this, simply load /sbin into the path before /usr/bin, and you will call the correct password program for what your needs are.
Regards,
Shannon
ps. sorry for the repeat post, the site yesterday kept giving me an error 100016 and stating that it could not find the server. looks like it could ;/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 09:22 AM
05-06-2003 09:22 AM
Re: NIS password...
I tried my PATH with /sbin before /usr/bin, and when I use passwd I got this error cause I'm not root:
$ passwd
Changing password for root
Permissior denied.
$
I don't want to use sudo... the users need to change their password?!?!?!
Any ideas?
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 10:47 AM
05-06-2003 10:47 AM
Re: NIS password...
alias pnc='passwd -r nis'
alias plc='passwd -r files'
Just my thought ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:00 AM
05-06-2003 11:00 AM
Re: NIS password...
For locally administered passwords, you must have the user defined in the server's local /etc/passwd file. There is a "magic" character(^+) that denotes the starting place for NIS(and the end of local entries). Just make sure the user is defined before this character.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:29 AM
05-06-2003 11:29 AM
Re: NIS password...
I've checked the /etc/passwd file and all my users are before the + sign....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:57 AM
05-06-2003 11:57 AM
SolutionI believe you may have to run 'inetd -c' after modifying
Let's begin with a fresh copy of /etc/nsswitch.conf:
mv /etc/nsswitch.conf /etc/nsswitch_old
cp /usr/newconfig/etc/nsswitch.conf
Then remove from 'nis' from /etc/nsswitch.conf file with only files designated for passwd and group?
passwd: files
group: files
'inetd -c'
Then try this:
passwd: files [NOTFOUND=continue UNAVAIL=continue] nis
'inetd -c'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:06 PM
05-06-2003 12:06 PM
Re: NIS password...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2003 06:39 AM
05-07-2003 06:39 AM
Re: NIS password...
I had to restart the inetd daemon with the command inetd -k and the /usr/sbin/inetd
Thanks
Jonathan