- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Copy Username and 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
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
тАО07-24-2008 03:14 AM
тАО07-24-2008 03:14 AM
I plan to move (copy) all of username and password from the old AS4100 to the new ES45, including all setting related to the username.
It is running Thru645.1B, C2 Security.
Any one please to let me know how the steps?
Thank you,
Apol
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2008 04:44 AM
тАО07-24-2008 04:44 AM
Re: Copy Username and password
On the old server:
Run authck to verify that the Enhanced Security database is free of errors. If it finds problems, correct them before proceeding.
# /tcb/bin/authck -av
Extract the accounts to a text file.
# /tcb/bin/edauth -d p -g > /tmp/p.auth
On the new system:
Run dxaccounts and set the desired defaults in the 'default' record in the 'Local Templates' view.
Copy the necessary files from the old server.
# cd /tmp
# ftp
Name (
331 Password required for
Password:
ftp> cd /etc
ftp> ascii
ftp> get passwd
ftp> get group
ftp> cd /tmp
ftp> get p.auth
ftp> bye
Install the accounts on the new system.
# cd /etc
# cp passwd passwd_old
# cp group group_old
# mv /tmp/passwd .
# mv /tmp/group .
# chmod 644 passwd
# chmod 644 group
# cat /tmp/p.auth | /tcb/bin/edauth -d p -s
Verify that the copied accounts are OK.
# /tcb/bin/authck -av
Update the Hashed Password Database:
# mkpasswd -v /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2008 06:17 AM
тАО07-24-2008 06:17 AM
Re: Copy Username and password
Nice procedure. One thought:
> Run dxaccounts and set the desired defaults in the 'default' record in the 'Local Templates' view.
Wouldn't it be easier to just copy /etc/auth/system/default to the new system?
Martin
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2008 07:33 PM
тАО07-24-2008 07:33 PM
Re: Copy Username and password
How if I also want to still keep original password and username from the new system including the oracle username? NOT just only copying from the old to the new system?
It means, I want to extend the existing username (system and oracle) and add the username/password from old system?
Thank you for help
Rgds,
Apol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2008 03:43 AM
тАО07-25-2008 03:43 AM
Solution# /tcb/bin/edauth -d p -g > /tmp/p.auth (on the old server)
# cat /tmp/p.auth | /tcb/bin/edauth -d p -s (on the new server)
What this is doing is dumping the protected password database entries from the old system into an ASCII file, then using that as input to the new system. If there are usernames on the new system that are not in the file from the old system, they won't be affected. However, the command as written WILL overwrite the entry for any account names that exist on both systems, so the password from the old system would transfer to the new one.
But you can get around this if you add the -C option to the last edauth command, i.e., change it to:
# cat /tmp/p.auth | /tcb/bin/edauth -d p -s -C
This option restricts edauth to only creating new entries, so it won't overwrite any existing ones. This will then add all the accounts from the old system that weren't present on the new one, but it won't affect the accounts that were already present on the new one.
Martin
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2008 01:08 AM
тАО07-27-2008 01:08 AM
Re: Copy Username and password
Dear Martin, and also Victor,
Thks alot with your steps.
It works now, and I already in new system.
Again Thks,
Rgds,
Apol