Windows/Linux/交换机设备增/删用户命令

    Windows设备

      Windows终端cmd模式下:

      添加帐号: net user $account $password /add

      删除帐号: net user $account /delete

      查看帐号: net user
————————————————

    Linux设备

      添加帐号1: useradd -p `openssl passwd -1 -salt 'user' $password` $account (添加帐号的同时设置密码)

      添加帐号2: useradd $account 先添加帐号

      passwd $account 再设置密码

      删除帐号: userdel -r $account
————————————————

    交换机

      1. Cisco

      添加帐号:在configure terminal模式下 username $account password $password

      删除帐号:在configure terminal模式下 no username $account
      2. ruijie

      添加帐号:在configure terminal模式下 username $account password $password

      删除帐号:在configure terminal模式下 no username $account
      3. maipu

      添加帐号:在configure terminal模式下 user $account password 0 $password

      删除帐号:在configure terminal模式下 no user $account
      4. huawei

      添加帐号:在system-view模式下 local-user $account 添加帐号

      password simple $password 设置密码

      service-type telnet ssh level 1 设置Telnet、ssh登录权限以及帐号等级

      删除帐号:在system-view模式下 undo local-user $account
      5. h3c

      添加帐号:在system-view模式下 local-user $account 添加帐号

      password simple $password 设置密码

      service-type telnet ssh level 1 设置Telnet、ssh登录权限以及帐号等级

      删除帐号:在system-view模式下 undo local-user $account



     【注】:以上$account为具体帐号名,$password为密码,除了这两个字符外其余字符不变。

 

posted @   Mr临川  阅读(87)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示