Coder Social home page Coder Social logo

chpasswd's Introduction

chpasswd

批量改服务器帐号的密码, 把执行的结果按照类型分类放在文件中

  1. 把要修改的机器列表放到 node.list文件中,每个机器一行

  2. 修改my.config,(不要用引号去把key或者value因起来,这个不是yaml):

    ssh:就是当前执行的ssh

    password: 要修改成最后的密码

    user: 修改的帐号名

  3. 运行批量修改命令, ./run

    (可以多次重复执行,已经成功的会跳过,成功的机器存在Success文件中,失败的机器会存在Fail* 中, Success 加上Fail* 的机器就是全部的机器)

  4. 运行失败的机器从试命令, ./run.Fail

    (这个命令下可能会重启sshd服务)

chpasswd's People

Contributors

lijinfeng2011 avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.