Forum Discussion
Copy local user accounts from one Big IP machine to anohter
Hi,
What is the best way to copy local defined users from one F5 machine to another. I have a list of more than 100 users. When lookig at the config in CLI, per user I got:
auth user example { description "example" encrypted-password "!!" group-id 500 home-dir "/home/example" partition Common partition-access all role guest shell none user-id 0 } ...
Will the account still work when copying this config just as we see it to another box ? (I'm worried about the password)
Thanks for the advice !
Frederik
3 Replies
- Kevin_Stewart
Employee
Just tested on an 11.5 box and the following seems to work fine:
-
From the source box:
tmsh list auth user > users.expThis dumps the user list to a file. Edit out the accounts that you don't want to copy over. Example:
auth user test.admin1 { description "test.admin1" encrypted-password "$6$...xjUuefL./n20" partition-access all role admin shell bash } auth user test.admin2 { description "test.admin2" encrypted-password "$6$...831d." partition-access all role resource-admin shell bash } -
Copy this file to the target system and merge it into the config:
tmsh load sys config merge file users.exp
-
- RajS
Nimbostratus
Thanks Kevin.. that helped me too. on 11.4.1 the below worked for me:
tmsh load sys config merge user-only file users.exp
- vaibhav_MD_2489
Nimbostratus
command for ver. 13.0 (/Common)(tmos)load sys config merge from-terminal > press ENTER > Paste configration for auth users > Press Ctr+D to submit > Save sys config
ENTER
:-)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com