SSH登陆到终端的时候去掉Your default context is root提示
来源:互联网 发布:js模仿360加速球效果 编辑:程序博客网 时间:2024/05/23 05:09
文章来源:http://www.2hei.net/mt/2009/07/your-default-context-is-root.html
[local@2hei.net ~]$ su -
Password:
Your default context is root:system_r:unconfined_t.
Do you want to choose a different one? [n]
[root@2hei.net ~]# getenforce
Permissive
解决办法一:
[root@2hei.net ~]# vi /etc/pam.d/su
session required /lib/security/$ISA/pam_selinux.so open multiple
改成
session required /lib/security/$ISA/pam_selinux.so open
解决办法二:
vi /etc/selinux/config
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
将
SELINUX=permissive
改成
SELINUX=disabled
重启系统或者使用以下命令使SElinux生效
setenforce 0
使用getenforce查看结果是否生效
[local@2hei.net ~]$ su -
Password:
Your default context is root:system_r:unconfined_t.
Do you want to choose a different one? [n]
[root@2hei.net ~]# getenforce
Permissive
解决办法一:
[root@2hei.net ~]# vi /etc/pam.d/su
session required /lib/security/$ISA/pam_selinux.so open multiple
改成
session required /lib/security/$ISA/pam_selinux.so open
解决办法二:
vi /etc/selinux/config
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
将
SELINUX=permissive
改成
SELINUX=disabled
重启系统或者使用以下命令使SElinux生效
setenforce 0
使用getenforce查看结果是否生效
- SSH登陆到终端的时候去掉Your default context is root提示
- system用户登陆的时候提示 ora-28000 the account is locked
- pexpect使用ssh登陆linux并切换到root用户
- ssh登陆提示信息
- cordova安装插件的时候提示: “git” command line tool is not installed: make sure it is accessible on your PATH.
- 去掉开机提示“android is starting”的提示框
- FreeBSD ssh 用root登陆
- linux ssh root 拒绝登陆
- 设置ssh登陆的时候不用输入密码的方法:
- FreeBSD 开启 root 的 ssh 登陆 及命令
- Ubuntu开启root账号登陆SSH客服端的方法
- system用户登陆的时候提示 ora-28000/ora-28002
- putty登录SSH终端出现的“Access Denied”提示
- 将应用部署到Websphere的context root根/
- linux终端切换到root
- gulp中报错 Task 'default' is not in your gulpfile 的解决方式
- ssh登陆提示"Host key verification failed."的解决方法
- 解决方案: scp/ssh 的登陆提示很慢 (Linux)
- linux系统下找不到.so文件->解决方法
- 多个txt文件合并
- POJ 1753 Flip Game (递归枚举)
- Column 'name' cannot be null Query: insert into category (id,name,description) values(?,?,?) Paramet
- Java杂记——当枚举遇到switch
- SSH登陆到终端的时候去掉Your default context is root提示
- 分布式
- Android酱油笔记之天气预报
- auto-comet服务器端向客户端的自动发送
- C 算法精介绍---二叉树的定义和介绍
- 分解质因数
- 什么是Core Dump
- PCB布板经验谈
- wxpython的进度工具条