Skip to content

Scripts to export Linux user accounts from one server and import on another

License

Notifications You must be signed in to change notification settings

ZappedC64/expimpacct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

expimpacct

Scripts to export Linux user accounts from one server and import on another

I wrote these Python scripts to export the user accounts from a Red Hat 7 Linux server and import on another. I had to write these scripts for Python 2.7 because Red Hat 7 still uses the old Python 2.7 and I am not allowed to install or update software on production servers.

I'm a Python noob so please excuse any bad programming techniques. I could have easily written this program in bash but I did this as a learning project. I'm learning Python as I find programs that I need.

To do:

  • Encrypt/Password protect the exported tar file
  • Add more text to the program as it runs

How to use....

Pretty simple.

  • Run expusers.py on the source server to export the /etc/{passwd/group/shadow} files.
  • Copy the user_export.tgz file from the source server to the destination server.
  • Run importusr.py on the destination server.

That's it.

About

Scripts to export Linux user accounts from one server and import on another

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages