Contents
How do I copy a user from one server to another in Linux?
Now we have a backup of all user account related files. Copy all the data in a pen drive or a new server by scp command. Before starting the migration to the new server, make sure to backup all user-related files in the new server. Restore the data into the new server.
How do I select a user in Linux?
The su command lets you switch the current user to any other user. If you need to run a command as a different (non-root) user, use the –l [username] option to specify the user account. Additionally, su can also be used to change to a different shell interpreter on the fly.