zoukankan      html  css  js  c++  java
  • linux系统用户锁定与解锁

    1、使用passwd命令锁定与解锁账号
     
     
    [root@rhel7 ~]# passwd -l testuser --- -l 锁定
    Locking password for user testuser.
    passwd: Success
    [root@rhel7 ~]# passwd -S testuser --- 查看状态
    testuser LK 2016-06-20 0 99999 7 -1 (Password locked.)
    [root@rhel7 ~]# 
    [root@rhel7 ~]# passwd -u testuser --- 解锁
    Unlocking password for user testuser.
    passwd: Success
    [root@rhel7 ~]# passwd -S testuser
    testuser PS 2016-06-20 0 99999 7 -1 (Password set, SHA512 crypt.)
     
    2、使用usermod命令锁定与解锁账号
     
     
    [root@rhel7 ~]# usermod -L testuser
    [root@rhel7 ~]# passwd -S testuser
    testuser LK 2016-06-20 0 99999 7 -1 (Password locked.)
    [root@rhel7 ~]# usermod -U testuser
    [root@rhel7 ~]# passwd -S testuser
    testuser PS 2016-06-20 0 99999 7 -1 (Password set, SHA512 crypt.)
    [root@rhel7 ~]# 
     
  • 相关阅读:
    C/C++ 库函数 是否调用 WinAPI
    获得图形的实际坐标值
    电影
    adobe flash player 下载地址
    加速软件
    电影_排行榜
    transform
    MyEclipse
    Android
    AAA
  • 原文地址:https://www.cnblogs.com/liang545621/p/12611486.html
Copyright © 2011-2022 走看看