免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2594 | 回复: 10
打印 上一主题 下一主题

[OpenBSD] openbsd初学疑问,请用过的多指点,万分感谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-07 16:32 |只看该作者 |倒序浏览
1:暂时只需要一个apache+php+ mysql+zond来提供一个www服务,还有一个ftp的,不大清楚这些在openbsd3.6下哪个版本最好了?另外ftp的软件哪个在openbsd下最好了?
2penbsd下的/etc/rc.conf怎么和FreeBSD不一样了,那些设置文件都相应的换成什么了?resolv.conf看见了,那个设置网络的跑哪去了?
3:Back Space键不能用了,换成Delete了?

论坛徽章:
0
2 [报告]
发表于 2005-01-07 16:35 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

4:sendmail怎么关掉?还是在/etc/rc.conf里面加入sendmail_enable="NONE"?
5:inetd这个openbsd是必需的?
inetd=YES               # almost always needed

论坛徽章:
0
3 [报告]
发表于 2005-01-07 16:51 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

我也是初学者,不过试着回答一下,有错误各位大大指出
1.版本使用官方最新的release版本,ftp我觉得pureftp最棒,基本和fb下差不多
2./etc/hostname.xx修改ip,/etc/mygate网关,/etc/myname修改hostname,看看faq吧
4.sendmail_flags=NO关闭sendmail
5.inetd可以关闭

论坛徽章:
0
4 [报告]
发表于 2005-01-07 17:07 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

1, 可以直接使用系统自带的apache, ftp, 当然, 如果你想使用最新版的软件, 自己编译安装!

2, openbsd的启动文件是rc, rc.conf, 你觉得那里不一样? 具体点...

3, 键盘设置同freebsd 等不同

4, rc.conf:
sendmail_flags=NO

5, 你可以关掉它

论坛徽章:
0
5 [报告]
发表于 2005-01-07 21:16 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

默认安装没有ports?

论坛徽章:
0
6 [报告]
发表于 2005-01-07 21:46 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

为了防止cracker利用rootkit工具通过后门进入系统。对/bin,/sbin进行安全保护:
# chflags schg /bin/*
# chflags schg /sbin/*

OpenBSD# chflags schg /bin/*
chflags: /bin/chmod: Operation not permitted
chflags: /bin/md5: Operation not permitted
chflags: /bin/mt: Operation not permitted
chflags: /bin/pax: Operation not permitted
chflags: /bin/rksh: Operation not permitted
chflags: /bin/rmd160: Operation not permitted
chflags: /bin/sh: Operation not permitted
chflags: /bin/sha1: Operation not permitted
chflags: /bin/sum: Operation not permitted
chflags: /bin/tar: Operation not permitted
chflags: /bin/test: Operation not permitted
OpenBSD# chflags schg /sbin/*
chflags: /sbin/chown: Operation not permitted
chflags: /sbin/mknod: Operation not permitted
chflags: /sbin/ncheck_ffs: Operation not permitted
chflags: /sbin/newfs: Operation not permitted
chflags: /sbin/rdump: Operation not permitted
chflags: /sbin/reboot: Operation not permitted
chflags: /sbin/rrestore: Operation not permitted
chflags: /sbin/swapon: Operation not permitted
???

论坛徽章:
0
7 [报告]
发表于 2005-01-07 23:55 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

原帖由 "wuming122" 发表:
为了防止cracker利用rootkit工具通过后门进入系统。对/bin,/sbin进行安全保护:
# chflags schg /bin/*
# chflags schg /sbin/*

OpenBSD# chflags schg /bin/*
chflags: /bin/chmod: Operation not permitted
..........


/bin/ls -lo /bin
看看文件是不是已经是schg了,如果是的就没有必要来,想要去掉的话还必须进入单用户模式。

论坛徽章:
0
8 [报告]
发表于 2005-01-08 00:32 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

楼主应该好好读一读 afterboot(。我记得安装完 OpenBSD,它就会让你读这个的。

论坛徽章:
0
9 [报告]
发表于 2005-01-08 10:41 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

[quote]原帖由 "dennis2"]楼主应该好好读一读 afterboot(。我记得安装完 OpenBSD,它就会让你读这个的。[/quote 发表:

没注意,装完以后直接就reboot了
现在就去看,多谢

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
10 [报告]
发表于 2005-01-10 10:57 |只看该作者

openbsd初学疑问,请用过的多指点,万分感谢!

原帖由 "wuming122" 发表:
4:sendmail怎么关掉?还是在/etc/rc.conf里面加入sendmail_enable="NONE"?


完全关闭sendmail不仅需要
将/etc/rc.conf中的sendmail_flags="xxxx"改为sendmail_falgs=NO
由于系统定时任务还会启动它,所以还需作如下修改

修改/etc/daily
找到下面代码
sh /etc/security 2>;&1 >; $OUT
if [ -s $OUT ]; then
mail -s "$host daily insecurity output" root < $OUT
fi
修改如下
sh /etc/security 2>;&1 >; $OUT.TMP
if [ -s $OUT.TMP ]; then
echo "$host daily insecurity output" >; $OUT
cat $OUT.TMP >;>; $OUT
rm $OUT.TMP
/usr/libexec/mail.local root >; $OUT
fi
修改crontab
#crontab –u root –e

30 1 * * * /bin/sh /etc/daily 2>;&1 | tee /var/log/daily.out | mail - s "`/bin/hostname` daily output" root
30 3 * * 6 /bin/sh /etc/weekly 2>;&1 | tee /var/log/weekly.out | mail -s "`/bin/hostname` weekly output" root
30 5 1 * * /bin/sh /etc/monthly 2>;&1 | tee /var/log/monthly.out | mail -s "`/bin/hostname` monthly output" root
修改为
30 1 * * * /bin/sh /etc/daily 2>;&1 | tee /var/log/daily.out | /usr/libexec/mail.local root
30 3 * * 6 /bin/sh /etc/weekly 2>;&1 | tee /var/log/weekly.out | /usr/libexec/mail.local root
30 5 1 * * /bin/sh /etc/monthly 2>;&1 | tee /var/log/monthly.out | /usr/libexec/mail.local root

并注释掉启动Sendmail行
#*/30 * * * * /usr/sbin/sendmail –L sm-msp-queue –Ac -q



from:
http://forum.cnfug.org/index.php?showtopic=1151

至于obsd3.6版本,purge没有实验过,可以参考。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP