- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing password in a trusted system from a r...
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
тАО06-03-2003 10:01 PM
тАО06-03-2003 10:01 PM
We are running HP 10.20 and 11.00 systems in HP trusted domain environment. Now I need to create users in applcation server and database server aswell (application requirement). Currently I am adding users by a scripts on both servers indivisually. Now I need to consolidate to one server. Now my question is ,
How do we change or set a user's password from a remote system.? I have tried copying tcb file but it doesn't work. Your help is much appreciated.
Thanks to all in advance.
Regards
Sathish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2003 10:17 PM
тАО06-03-2003 10:17 PM
Re: Changing password in a trusted system from a remote system
I dont know weather copying tcb directory will help you or not,but you can try giving command
#/usr/lbin/modprpw -k
Regards,
Rajesh G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2003 10:18 PM
тАО06-03-2003 10:18 PM
Re: Changing password in a trusted system from a remote system
How I do it now that I'm in a trusted environment is I use useradd username
Then as root I change the password with a passwd command.
passwd username
I usually set the password to Change1 or the username1 depending on management policy at the time.
I then set the id to expire in seven days if its not used(forget the command, its at work, I'm not) and then passwd -f username so the first successful login forces a password change.
Our system is not elegant, its efficient.
I recommend against the /tcb copy attempt, I think trusted systems are designed to defeat this.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2003 10:19 PM
тАО06-03-2003 10:19 PM
Re: Changing password in a trusted system from a remote system
it is possible to copy tcb-files from one system to another:
- create group in /etc/group (if necessary)
- create user in /etc/passwd on new system (same uid/gid/home/ ...)
- copy tcb-file from old-system to new-system (permission 664)
it works.
It is possible that this doesen't work with 10.20 to 11.00, I cannot test it because we do not have 10.20 anymore.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2003 10:56 PM
тАО06-03-2003 10:56 PM
Re: Changing password in a trusted system from a remote system
Rajesh - I hope /usr/lbin/modprpw -k USERNAME --> will reactivate the account and not to change the password for a user. I have tried this option and didn't help me.
Chris,
What I want to do is to set user password from a remote system like using remsh or rlogin. So that I can use different password.
If my question was not clear I will do it again,
How to set / change users password in a trusted system from a remote trusted system ?
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2003 11:14 PM
тАО06-03-2003 11:14 PM
Solutionyou can replace password-string in the tcb-file:
cp /tcb/files/auth/u/user /tcb/files/auth/u/user.bak
sed 's/:u_pwd=.*:/:u_pwd=
To avoid problems with quoting write this commands in a script, scp/ftp/rcp this script to the machine and try
ssh/remsh
You can create different passwordstrings on your primary-system, by simply use passwd-command and copy the string from /etc/passwd or tcb-files
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 01:17 AM
тАО06-04-2003 01:17 AM
Re: Changing password in a trusted system from a remote system
U have to run the SAM on remote system or remsh sam on remote host.
U don't have any other option to change the login/passwd on a trusted system.
Good Luck
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 02:40 AM
тАО06-04-2003 02:40 AM
Re: Changing password in a trusted system from a remote system
I'm not aware of a method to remotely change passwords as you suggest. You won't be able to use NIS as it isn't supported on 10.20 trusted systems (but don't forget that HP will be ending support for 10.20 at the end of this month.) Here are the options as I see it:
1) remsh and use passwd on the remote system manually.
2) run passwd on the local system for a dummy user, then copy the u_pwd line from their tcb file and replace the existing u_pwd entry for the user on the remote system.
Be aware that manually editing the tcb files is not considered to be a good idea, it's easy to make mistakes. It's also a good idea to run authck -pv before you start to check the health of your tcb files.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 08:50 PM
тАО06-09-2003 08:50 PM
Re: Changing password in a trusted system from a remote system
Chris and Darren's mwthod worked quite well. As said we can't change password by using "remsh", I set a default password on local machine and replace u_pwd string with that default password string and it works well.
Chris and Darren, Thanks for your help and full points being given to you guys.
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2006 09:56 PM
тАО09-19-2006 09:56 PM