- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: passwd command
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-12-2007 03:03 AM
04-12-2007 03:03 AM
passwd command
Thanks for any help and reply.
Tammy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 03:10 AM
04-12-2007 03:10 AM
Re: passwd command
It would help if you explained how this happened --- and I'm sure that you made backup copies of /etc/passwd and the tcb database (if applicable) before any scripts were run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 03:14 AM
04-12-2007 03:14 AM
Re: passwd command
you can use vipw to edit the /etc/password or use SAM.
That is if I have understood the problem correctly. If not, can you please give more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:10 AM
04-12-2007 04:10 AM
Re: passwd command
This is the first time that I see passwd command remove users' home directory and log in shell in /etc/passwd file.
I agree passwd command should not remove users' home directory and log in shell. But it does indeed happen to one of our hpux systems.
I even run check sum on /usr/bin/passwd with other working system. The numbers are the same...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:15 AM
04-12-2007 04:15 AM
Re: passwd command
If it does not say 'passwd is /usr/bin/passwd' and instead gives some other path or script name, then you need to investigate that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:27 AM
04-12-2007 04:27 AM
Re: passwd command
Below are the last 2 lines after I run /usr/bin/passwd
a135212:RRISoffAhbh8.:108:0::21:Morris~Wen,,,
a324683:L0.MuP7a2bM4.:107:0::21:Agus Soejono
Tks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:32 AM
04-12-2007 04:32 AM
Re: passwd command
a135212:RRISoffAhbh8.:108:0::21:Morris~Wen,,,
a324683:L0.MuP7a2bM4.:107:0::21:Agus Soejono
The format of the lines should be:
user:password:uid:gid:Comments:/home/dir:/usr/bin/sh
The 2 lines you mention have the requisite number of fields, but the last 2 are wrong.
The '21' is where the home dir should be and the names are where the shell should be.
Let pwck check the password file, fix any errors it reports and try again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 06:48 AM
04-12-2007 06:48 AM
Re: passwd command
It is for all users in /etc/passwd file after I run /usr/bin/passwd. I just post the last 2 lines....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 06:51 AM
04-12-2007 06:51 AM
Re: passwd command
Fix the problems that it mentions and then see what happens from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 07:19 AM
04-12-2007 07:19 AM
Re: passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 07:32 AM
04-12-2007 07:32 AM
Re: passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 07:48 AM
04-12-2007 07:48 AM
Re: passwd command
/usr/bin/passwd is not working correctly....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 07:54 AM
04-12-2007 07:54 AM
Re: passwd command
1) The /etc/passwd file BEFORE you execute the passwd command.
2) The command line you are using when running passwd and any output (I don't care about the password you are actually typing in).
3) The /etc/passwd file AFTER you execute the passwd command.
Also, what version of HP-UX are you running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 08:14 AM
04-12-2007 08:14 AM
Re: passwd command
Before run passwd.
a135212:RRISoffAhbh8.:108:21:Morris~Wen,,,:/home/a135212:/usr/bin/sh
a324683:kGy1op4KBYcoA:107:21:Agus Soejono:/home/a324683:/sbin/sh
server1 /etc #
Now run /usr/bin/passwd
server1 /etc # /usr/bin/passwd a324683
Changing password for a324683
New password:
Re-enter new password:
Passwd successfully changed
After run /usr/bin/passwd
a135212:RRISoffAhbh8.:108:0::21:Morris~Wen,,,
a324683:B9RrfWdZ6kLCU:107:0::21:Agus Soejono
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 08:29 AM
04-12-2007 08:29 AM
Re: passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 08:33 AM
04-12-2007 08:33 AM
Re: passwd command
Do you have the latest passwd cumulative patch, PHCO_33214, loaded? If not you may try it.
http://www2.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_33214&sel={hpux:11.11,}&BC=main|search|
What is the output of:
# what /usr/bin/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 08:42 AM
04-12-2007 08:42 AM
Re: passwd command
/usr/bin/passwd:
$Revision: @(#) all CUP11.11_BL2003_0517_1 PATCH_11.11 PHCO_29125
Sat May 17 15:42:02 PDT 2003 $
$
I ran check sum on /usr/bin/passwd and compare with other systems that has no problem. The check sum number comes out the same...
I think passwd works before.
Tks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 09:40 AM
04-12-2007 09:40 AM
Re: passwd command
Are you using any sort of other directory service, like LDAP, NIS, NIS+, etc.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 11:11 AM
04-12-2007 11:11 AM
Re: passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 11:22 AM
04-12-2007 11:22 AM
Re: passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 03:44 PM
04-12-2007 03:44 PM
Re: passwd command
(That's IPD.)
Tammy could also use swverify to check to see if there are other files that have been messed up.
(Unfortunately this may show up false issues due to sloppy packaging processes.)