- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Discussions
Discussions
Forums
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
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.