中药方大全小图标
您当前的位置:首页 > 其他 > 网站日记

Centos下普通用户设置sudo权限

提示: 阅读权限:公开  来源:原创  作者:中药方大全
centos7下使用CutyCapt将html转成图片
https://blog.csdn.net/qq_31617637/article/details/83274178已按此方面安装CutyCapt

https://blog.csdn.net/bizu005/article/details/84025569?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
https://blog.csdn.net/weixin_44705683/article/details/104413090

1.测试结果:

<br />
<b>Warning</b>:  exec() has been disabled for security reasons in <b>/www/wwwroot/w.755.kim/1.php</b> on line <b>6</b><br />
Array
(
)
<img src="http://39.105.177.79/d/zhongyf.jpg">

处理方法: 解禁 exec函数

2.测试结果
Array
(
    [0] => 
    [1] => We trust you have received the usual lecture from the local System
    [2] => Administrator. It usually boils down to these three things:
    [3] => 
    [4] =>     #1) Respect the privacy of others.
    [5] =>     #2) Think before you type.
    [6] =>     #3) With great power comes great responsibility.
    [7] => 
    [8] => sudo: no tty present and no askpass program specified
)
截图失败1

处理方法: 权限不足


Centos下普通用户设置sudo权限


# 首先切换为root用户
su root
 
# 修改sudoers文件
vim /etc/sudoers
 
# 找到权限设置,如下
root    ALL=(ALL)       ALL
 
# 若要给www用户增加sudo权限,需要增加如下一行
root    ALL=(ALL)       ALL
violet    ALL=(ALL)       ALL
www     ALL=(ALL)   NOPASSWD: ALL
 
# 保存退出后violet用户则拥有了sudo权限
  
 
tags: Centos 用户 设置 权限
返回顶部
推荐资讯
视频:田纪钧讲关节不痛的秘密、膝关节拉筋法
视频:田纪钧讲关节不
白露到了,你还好吗?
白露到了,你还好吗?
尿疗与断食
尿疗与断食
给风疹反复发作女孩的药方(组图)
给风疹反复发作女孩的
相关文章
栏目更新
栏目热门
  1. 帝国cms全站搜索的分页格式如何修改-流程
  2. libreoffice7的命令大全
  3. 帝国cms插件之标题生成标题图片
  4. 帝国cms插件安装模板
  5. useragent两千条,爬虫专用
  6. 帝国cms插件如何兼容gbk和utf8
  7. 帝国cms插件之迅搜
  8. 帝国cms用户上传文件名的命名规则及修改方
  9. 帝国cms7.2函数大全
  10. 帝国cms代码片段备忘录