摘要: 1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去.2.添加sudo文件的写权限,命令是:chmod u+w /etc/sudoers3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名)ps:这里说下你可以sudoers添加下面四行中任意一条youuser ALL=(ALL) ALL%youuser ALL=(ALL) ALLyouuser ALL=(ALL) NOPASSWD: ALL%youuser ALL=(ALL) NOPASSWD: ALL第一 阅读全文
posted @ 2013-05-28 16:06 Zox 阅读(77211) 评论(4) 推荐(1)
摘要: 分类: 服务器与存储 在linux上安装有些东西时会出现 Permission denied 的情况:以下就是解决它的办法之一编辑/etc/selinux/config,找到这段:# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcin 阅读全文
posted @ 2013-05-28 16:05 Zox 阅读(224) 评论(0) 推荐(0)