首页服务器Web服务器 CentOS 7安装完成后初始化的方法

CentOS 7安装完成后初始化的方法

1、添加用户 新增名为"wang"的用户 [root@vdevops ~]# useradd wang #添加账户[root@vdevops ~]# passwd wang #设置密码Changing password for user wang.New password: R…

1、添加用户

新增名为"wang"的用户

[root@vdevops ~]# useradd wang #添加账户[root@vdevops ~]# passwd wang #设置密码Changing password for user wang.New password: Retype new password: passwd: all authentication tokens updated successfully.[root@vdevops ~]# exit #退出以用户"wang"为例,设置其为唯一拥有管理员权限的账户[root@vdevops ~]# usermod -G wheel wang[root@vdevops ~]# vim /etc/pam.d/su[html] view plain copy print?#%PAM-1.0 auth sufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. # 取消下面一行的注释 auth required pam_wheel.so use_uid auth substack system-auth auth include postlogin account sufficient pam_succeed_if.so uid = 0 use_uid quiet account include system-auth password include system-auth session include system-auth session include postlogin session optional pam_xauth.so 设置root账户的邮件转发# Person who should get root's mail# 最后一行,取消注释,改变用户名称root: wang
本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/fwq/web/5280.html
上一篇docker registry安装简单命令实现
下一篇 docker初识之五分钟认识docker
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部