摘要: 摘自:http://www.apelearn.com/bbs/thread-7114-1-1.html /etc/shadow文件的第二段是用户的密码,直接cat /etc/shadow 发现该段大致有三种类型:1. $6$ 开头的长长的一段字符串,这个就是用户的密码,只不过是加密过的,以$6$开头 阅读全文
posted @ 2016-08-20 15:27 andreking 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://ncforest.blog.163.com/blog/static/295626642007551417331/ 1.sudo的配置文件是/etc/sudoers ,我们可以用他的专用编辑工具visodu ,此工具的好处是在添加规则不太准确时,保存退出时会提示给我们错误信息; 阅读全文
posted @ 2016-08-20 15:21 andreking 阅读(3357) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.apelearn.com/bbs/thread-7467-1-1.html 一. 使用 su 命令临时切换用户身份 1、su 的适用条件和威力 su命令就是切换用户的工具,怎么理解呢?比如我们以普通用户beinan登录的,但要添加用户任务,执行useradd ,beina 阅读全文
posted @ 2016-08-20 14:55 andreking 阅读(336) 评论(0) 推荐(0) 编辑