📄 linux 系统中的超级权限的控制 linuxsir_org.htm
字号:
<H3 class=title><A class=active
href="http://www.linuxsir.org/main/?q=node/104#comment-34">看得不累并且有收获</A></H3>
<DIV class=content>
<P>这篇文章看了我近1小时,看得不累并且有收获,不错,谢了。<BR>另外北南兄自己注意身体!一天写10多个小时别累出病了~~~~</P>
<P>感觉应该把程序的suid sgid简单提一下,做个对比。</P></DIV>
<DIV class=links>By Anonymous (没有被验证) at 周二, 2005/11/01 - 12:00 | <A
href="http://www.linuxsir.org/main/?q=comment/reply/104/34">回复</A></DIV></DIV>
<DIV style="MARGIN-LEFT: 25px"><A id=comment-36></A>
<DIV class=comment>
<H3 class=title><A class=active
href="http://www.linuxsir.org/main/?q=node/104#comment-36">有关suid和sgid的,我想放在其它文档中写</A></H3>
<DIV class=content>
<P>谢谢兄弟鼓励和关心,我想把suid和sgid放在另一篇中写;</P>
<P>用户的角色、权限和文件、目录的相关联的。写基础文档有点感觉无从下手;只能一个一个的来解决。现在感觉自己实力不足,但对我也是有好处的,能把原来的东西加强一下,现在对有些东西能知其所以然了;</P>
<P>北南 呈上</P></DIV>
<DIV class=links>By beinan at 周二, 2005/11/01 - 12:37 | <A
href="http://www.linuxsir.org/main/?q=comment/reply/104/36">回复</A></DIV></DIV></DIV><A
id=comment-33></A>
<DIV class=comment>
<H3 class=title><A class=active
href="http://www.linuxsir.org/main/?q=node/104#comment-33">感谢eTony
、懒猫、Arch等的修改;</A></H3>
<DIV class=content>
<P><B><BR>eTony兄弟修正了若干,主要是概念及表达上的冲突;</P>
<P>+++++++++++++++++++++++++++++++++++<BR>懒猫兄弟修正的内容如下:<BR>+++++++++++++++++++++++++++++++++++<BR></B><BR>关于您的
su 和 sudo 的文档。</P>
<P>可能对于初学者或者阅读者来说,一篇好的文章,如果有一个目录纲要在前面“导航”一下,文档内容归类得清晰一些,看起来会更加舒服吧。</P>
<P>个人建议您把文档内第一大点(对……的理解)的内容再细分一下(不一定追加内容),用小标题概括起来,然后在目录纲要中体现,这样会不会对于编写者您来说也会更加清晰一点呢?或许经过这样的编排你的思路也会更清晰、修改也更加容易吧?</P>
<P>刚才重新看了一遍,对该文档的目录结构提一个参考方案(也许其实只是某些点换了个标题,应该还有错漏的</P>
<P>一. 理解 Linux 系统中的用户和用户权限</P>
<P>1. 什么是超级用户</P>
<P>2. 理解 UID 和用户的对应关系</P>
<P>3. 普通用户和伪装用户</P>
<P>二. 超级用户(权限)在系统管理中的作用</P>
<P>1. 管理文件、目录和进程</P>
<P>2. 全局性管理操作</P>
<P>3. 超级权限的不可替代性</P>
<P>三. 使用 su 命令临时切换用户身份</P>
<P>1. su 的适用条件和威力</P>
<P>2. su 命令的用法</P>
<P>3. 范例</P>
<P>4. 优势和不足</P>
<P>四. sudo :受限使用的 su</P>
<P>1. sudo 的适用条件和威力</P>
<P>2. 从编写 sudo 配置文件开始</P>
<P>3. 如何配置别名规则</P>
<P>4. 如何配置授权规则</P>
<P>5. 如何使用 sudo 命令</P>
<P>五. 后记</P>
<P>六. 关于本文</P>
<P><B><BR>+++++++++++++++++++++++++++++++++++<BR>Arch兄弟修正内容如下:<BR>+++++++++++++++++++++++++++++++++++<BR></B><BR>第六行:
表示授权SYSADER下的所有成员,在所有可能存在的主机名的主机下运行或禁止
SYDCMD和DSKCMD下定义的命令。更为明确遥说,beinan、linuxsir和beinan用户组下的成员能以root身份运行 chown
、chmod 、adduser、passwd,但不能更改root的密码;也可以以root身份运行 parted和fdisk
,本条规则的等价规则是;<BR>
<DIV class=codeblock><CODE>beinan,linuxsir,%beinan
ALL=/bin/chown,/bin/chmod,/usr/sbin/adduser,/usr/bin/passwd,!/usr/bin/passwd
root,/sbin/parted,/sbin/fdisk</CODE></DIV>
<P></P>
<P>这里好像没有达到不能修改root密码的要求,sudo passwd和sudo passwd root的效果是等价的吧,^_^</P>
<P>您看这样改是否可行?<BR>
<DIV class=codeblock><CODE>beinan,linuxsir,%beinan
ALL=/bin/chown,/bin/chmod,/usr/sbin/adduser,!/usr/bin/passwd,!/usr/bin/passwd
root,/usr/bin/passwd [A-Za-z]*, /sbin/parted,/sbin/fdisk</CODE></DIV>
<P></P>
<P>===================================<BR>自由与梦想齐飞,欢迎光临LinuxSir.Org;<BR>开源传万世,因有我参与;</P></DIV>
<DIV class=links>By beinan at 周二, 2005/11/01 - 11:07 | <A
href="http://www.linuxsir.org/main/?q=comment/reply/104/33">回复</A></DIV></DIV>
<DIV style="MARGIN-LEFT: 25px"><A id=comment-450></A>
<DIV class=comment>
<H3 class=title><A class=active
href="http://www.linuxsir.org/main/?q=node/104#comment-450">十分感谢楼主</A></H3>
<DIV class=content>
<P>如题</P></DIV>
<DIV class=links>By lvjianxiang at 周五, 2006/05/19 - 09:02 | <A
href="http://www.linuxsir.org/main/?q=comment/reply/104/450">回复</A></DIV></DIV></DIV></DIV></FORM><!-- end content -->
<DIV id=footer>
<CENTER><A href="http://www.linuxsir.org/"><IMG
src="Linux 系统中的超级权限的控制 LinuxSir_Org.files/logo.jpg"></A> <BR><A
href="http://www.miibeian.gov.cn/"><FONT color=blue
size=3><B>闽ICP备06025536号</B></FONT></A><BR>
<SCRIPT language=JavaScript
src="Linux 系统中的超级权限的控制 LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
<BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue
size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
<TD id=sidebar-right>
<DIV class="block block-block" id=block-block-2>
<H2 class=title>基础知识</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-4>
<H2 class=title>软件应用</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-5>
<H2 class=title>网络服务器</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-comment" id=block-comment-0>
<H2 class=title>最新评论</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI><A
href="http://www.linuxsir.org/main/?q=node/158#comment-626"></A><BR>1
hour 7 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/42#comment-625">太感谢了</A><BR>5
hours 11 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-624">错了</A><BR>19
hours 47 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-623">q</A><BR>20
hours 6 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-622">有些道理</A><BR>20
hours 28 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/219#comment-621">"内置的摄像头也能用这个吗?"</A><BR>1
day 9 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/80#comment-620">终于知道了...</A><BR>1
day 18 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/106#comment-619">okok</A><BR>3
days 9 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/93#comment-618">那要除去阴影呢?</A><BR>4
days 15 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/227#comment-617">不错的机会</A><BR>5
days 2 hours
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -