禁止非管理组普通用户登录超级用户root

一般人都知道,linux的最高权限是root账号,因此防范root登录是一个非常必要的事情。

1:禁止普通用户通过su -切换到超级用户root

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/disabled-users-login-root/

2:禁止ssh远程root登录


3:visudo配置权限配置合理
文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/disabled-users-login-root/

参考文档:http://note.t4x.org/project/visudo-user-rights-management-scheme/
参考文档:http://note.t4x.org/basic/linux-sshd-config/
参考文档:https://code.csdn.net/snippets/478516文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/disabled-users-login-root/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/disabled-users-login-root/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

On this day in past years
August
11
 
Byrd
  • by Published onAugust 11, 2016
  • 原文链接:https://note.t4x.org/basic/disabled-users-login-root/
Comments  2  Visitor  2
    • 跨境电商平台 0

      非常不错!!!!

      • 浙江经济理事会 0

        玩linux的都是高手。

      匿名

      Comment

      Anonymous

      Slide puzzle verification.