Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux user manage On python program #16

Closed
qiaofeng1227 opened this issue Nov 17, 2021 · 1 comment
Closed

Linux user manage On python program #16

qiaofeng1227 opened this issue Nov 17, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@qiaofeng1227
Copy link
Contributor

qiaofeng1227 commented Nov 17, 2021

Environmental requirements: Python 3.6+
Main functions:

  1. add user with random password, the user has sudo authority and user can't reset password by passwd
  2. delete user with all of the user info(authority)
  3. python3 config_user.py,like this:
    [root@iZj6c46sxkb44piei7ekgkZ mcloud]# python3 config_azure.py
    
        Select what you will do to the user:  
    
         0.add user
         1.delete user
             2.reset password
    
        if 0  Input your username:  
        if 1/2  List all user with password, which user do you want to operate?: 
                  0. xuwei
                  1. lixi
                  2. haibo
             
            Are you sure?(Y/N)  
    
            Result feedback
    
    
@qiaofeng1227 qiaofeng1227 added the enhancement New feature or request label Nov 17, 2021
@qiaofeng1227
Copy link
Contributor Author

complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants