- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password Issue
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
05-13-2009 10:37 PM
05-13-2009 10:37 PM
I am trying to create a new user "test" UID=0 from root. Following is what happens:
---------------------------------------
# useradd -o -u 0 -m -d /home/test test
# passwd test
Changing password for test
Old password:
Sorry.
---------------------------------------
Why is it asking for old password, when it is a 'brand' new user?
Is is because this is a trusted system?
Response is much appreciated.
Thanks..
UniRock
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:41 PM
05-13-2009 10:41 PM
Re: Password Issue
can you check your /etc/passwd file the test user already exist?
if it not exist please update /etc/passwd file with below line and then on command prompt type passwd test to reset password.
test::0:0:test user:/test:/bin/bash
let me know how it goes, thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:47 PM
05-13-2009 10:47 PM
Re: Password Issue
It exists already..
test:*:104:20::/home/test:/sbin/sh
Shall I modify it and try?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:48 PM
05-13-2009 10:48 PM
Re: Password Issue
It was:
test:*:0:20::/home/test:/sbin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:48 PM
05-13-2009 10:48 PM
Solutionopen this file /tcb/files/auth/t/test
test:u_name=test:u_id#0:\
:u_pwd=encrypted_password:\
:u_minchg#0:u_pickpw:u_nullpw:u_restrict@:\
:u_maxtries#100:u_lock@:chkent:
delete all cherecter after "=" sign on this line after deleteing this look like the below line
u_pwd= :\
save the file
try with "passwd test"
now it will not ask the old passwd
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:57 PM
05-13-2009 10:57 PM
Re: Password Issue
The file looks like:
test:u_name=test:u_id#0:\
:u_pwd=*:\ <<<======
:u_auditid#16:\
:u_auditflag#1:\
:u_unsucchg#1242269911:u_suclog#1242269865:u_lock@:chkent:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:08 PM
05-13-2009 11:08 PM
Re: Password Issue
u_pwd=*:\ <<<======
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:27 PM
05-13-2009 11:27 PM
Re: Password Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:31 PM
05-13-2009 11:31 PM
Re: Password Issue
what about u system is it trusted or not trusted. if it is trusted
do the following
passwd â df userid.
once u entered this command next time user login will ask new passwd only
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:39 PM
05-13-2009 11:39 PM
Re: Password Issue
UserId is 0....as i am trying to create another user with root powers.
Still if I use the command, I get:
# passwd -df 0
Password cannot be changed. Reason: Cannot access protected password entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:46 PM
05-13-2009 11:46 PM
Re: Password Issue
the same user what asked old passwd
that one try first
by using this command
passwd -df new122
then open another terminal session
try to enter the user which one u forgot the passwd
thanks and regards
Sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:58 PM
05-13-2009 11:58 PM
Re: Password Issue
Are you creating a NEW user with UID 0.....or this is an OLD/existing user??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 12:36 AM
05-14-2009 12:36 AM
Re: Password Issue
Never create a user with uid 0.
Think if you remove the user later point of time along with user owned files delete option. It delete all the root owned files as well.
So it is not recommanded to have user with uid 0
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 12:47 AM
05-14-2009 12:47 AM
Re: Password Issue
After deleteing the * save the file
give passwd test
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 04:44 AM
05-14-2009 04:44 AM
Re: Password Issue
Removing * from below line solved the issue :)
u_pwd=*:\ <<<======
Actually first I tried this and failed.
u_pwd= :\ <<=== space before colon
Later, I tried this and succeeded.
u_pwd=:\ <<<==== no space before colon.
================================
Thanks all of you specially Suraj and Avizen.
Sometimes, along with the soluton, we require advice also.
Thanks Ganeshan for your valuable suggestion.
================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 09:18 AM
05-14-2009 09:18 AM
Re: Password Issue
Really a useful solution for me too .Thanks