> >; 多谢!
> 建一个用户,将其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.
上一页 1 2 34 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 下一页
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 资料 论坛 去年 贡献 文件 系统 使用 安装 可以 需要 |
注册
个人空间
