阅 读 文 章

贡献去年在论坛粘贴的资料,138页的WORD。

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(race) | 时间:2007-05-27 | 浏览:人次 ]


> >;   多谢! 
> 建一个用户,将其shell设为关机命令。为了安全,这个用户的UID最好不要 
> 设成0。 
> 关机命令可以自己编写: 
> 用root帐号登录(!!!!),编以下一个文件: 
> #include <stdio.h>; 
> main() 
> { 
>      int tmp; 
>      tmp = setuid(0); 
>      if (tmp) { 
>         shell("/etc/shutdown -g0 -y"); 

           ^-----对不起,这儿应该是system 

>      } 
>      else 
>         fprintf(stderr, "Setuid Failure!\n"); 
> } 
> 然后编译,比方说执行文件为shut 
> 最后,利用chmod修改这个命令的属性: 
> chmod shut a+s 
> 在建用户时,shell指向这个shut就行了。

编辑/etc/passwd加入
shut::0:1::/:/etc/halt
/etc/group加入
shut::::::::

没什么,这样的话它们必须配置在非一个网段内才能同时正常工作。
你看到的mac地址是主机的。如果想用网卡自己的mac地址
setenv local-mac-address? True

怎样让系统的消息不在控制台显示?
修改/etc/syslog.conf
改/etc/default/su
去掉root远程登录的提示
注掉有dev/sysmsg和*的行,就ok
谢谢大家 
Multi-Booting Windows 98, Linux, and SolarisTM
Brian Gollsneider 
I really enjoyed Brian Wilson's article, "Using VMware as a Development Tool," in Sys Admin (March 2001). Wilson described using VMware to emulate a Windows machine running on top of a Linux box but, rephrasing his theme, it is also a technique for getting more out of your hardware. You might wonder why bother -- hardware is so cheap that you can go out and get another box for peanuts. As I write this, I find ads selling complete systems for $800, 256 MB RAM for $80, and a 30-GB hard drive for $60. It's true that hardware is dirt cheap, but I find that my most limiting factor is not dollars but space. I run out of desk space before I run out of dollars to buy machines. So, to get more out of my hardware, I use the old Linux technique of multi-booting. Sometimes you just need the native OS, or sometimes the hardware you're working with is too underpowered to handle the overhead that an emulator/virtual machine adds. In this article, I present a formula to quickly set a machine to boot Windows 98, Linux, and Intel Solaris at no cost beyond the operating systems. 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 资料 论坛 去年 贡献 文件 系统 使用 安装 可以 需要

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.