- 主题:这个怎么回事
[root@th124030 bin]# ./miscd daemon
Error! File .BOARDS is not writable.
起动不了的样子
--
FROM 59.66.124.*
完整的是:
[root@th124030 bin]# ./miscd daemon
Error! File .BOARDS is not writable.
You have new mail in /var/spool/mail/bbs
最后那句也不知何意
【 在 r0 (阿圆) 的大作中提到: 】
: [root@th124030 bin]# ./miscd daemon
: Error! File .BOARDS is not writable.
: 起动不了的样子
: ...................
--
FROM 59.66.124.*
看到它说的mail了:
From bbs@th124030.ip.tsinghua.edu.cn Thu Mar 23 12:09:02 2006
Return-Path: <bbs@th124030.ip.tsinghua.edu.cn>
Received: from th124030.ip.tsinghua.edu.cn (localhost.localdomain [127.0.0.1])
by th124030.ip.tsinghua.edu.cn (8.13.4/8.13.4) with ESMTP id k2N492aO024302
for <bbs@th124030.ip.tsinghua.edu.cn>; Thu, 23 Mar 2006 12:09:02 +0800
Received: (from bbs@localhost)
by th124030.ip.tsinghua.edu.cn (8.13.4/8.13.4/Submit) id k2N4926e024301;
Thu, 23 Mar 2006 12:09:02 +0800
Date: Thu, 23 Mar 2006 12:09:02 +0800
Message-Id: <200603230409.k2N4926e024301@th124030.ip.tsinghua.edu.cn>
From: root@th124030.ip.tsinghua.edu.cn (Cron Daemon)
To: bbs@th124030.ip.tsinghua.edu.cn
Subject: Cron <bbs@th124030> ~bbs/innd/bbslink ~bbs > ~bbs/tmp/portnum 2>&1
X-Cron-Env: <MAILTO=bbs>
X-Cron-Env: <BBSHOME=/usr/local/bbs>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/bbs>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=bbs>
X-Cron-Env: <USER=bbs>
/bin/sh: /home/bbs/tmp/portnum: No such file or directory
【 在 r0 (阿圆) 的大作中提到: 】
: 完整的是:
: [root@th124030 bin]# ./miscd daemon
: Error! File .BOARDS is not writable.
: ...................
--
FROM 59.66.124.*
没关系啊 开站本来欢迎大家访问
【 在 dvlt (饿了就要吃!) 的大作中提到: 】
: 你瞬间把ip也暴露了..
--
FROM 59.66.124.*
能不能说明白些?
我确实刚执行过这个命令:
chown -R bbs:bbs /usr/local/bbs
【 在 sxdxsimple (雾里龙虾) 的大作中提到: 】
: sigh
: chown -R bbs:bbs $BBSHOME
--
FROM 59.66.124.*
./configure --prefix=/usr/local/bbs --enable-site=fb2k-v2 --with-www=/usr/local/www --with-php=/usr/local/include/php --with-mysql --enable-ssh --enable-ssl
【 在 dvlt (饿了就要吃!) 的大作中提到: 】
: 你bbs怎么安装的?configure命令是什么?BBSUID:BBSGID 怎么定义的?
--
FROM 59.66.124.*
执行第一句的结果是死在那里没有反应。
第二句, 我另开个终端窗口试试……
【 在 dvlt (饿了就要吃!) 的大作中提到: 】
: 在bbs源代码的目录里
: grep -r BBSUID .
: 看看结果
: ...................
--
FROM 59.66.124.*
[root@th124030 kbsbbs-2.0dev]# grep bbs /etc/passwd
bbs:x:500:500:bbs:/home/bbs:/bin/bash
You have mail in /var/spool/mail/bbs
【 在 dvlt (饿了就要吃!) 的大作中提到: 】
: 在bbs源代码的目录里
: grep -r BBSUID .
: 看看结果
: ...................
--
FROM 59.66.124.*
[root@th124030 bbs]# cd /home/bbs/smthbbs/kbsbbs-2.0dev You have mail in /var/spool/mail/bbs [root@th124030 kbsbbs-2.0dev]# grep bbs /etc/passwd
bbs:x:500:500:bbs:/home/bbs:/bin/bash
You have mail in /var/spool/mail/bbs
[root@th124030 kbsbbs-2.0dev]# grep -r BBSUID .
./mail2bbs/mail2bbs.c: setreuid(BBSUID, BBSUID);
./mail2bbs/qmail2bbs.c: setreuid(BBSUID, BBSUID);
./libBBS/site.h:#define BBSUID 501
./libBBS/default.h:#ifndef BBSUID
./libBBS/default.h:#error You must define BBSUID in site.h for your site!
./sshbbsd/bbsd_single.c: setuid(BBSUID); /* sets the effective user ID of the current process. */
./sshbbsd/bbsd_single.c: setreuid(BBSUID, BBSUID); /* setreuid sets real and effective user ID's
./sshbbsd/bbsd_single.c: setuid(BBSUID);
./sshbbsd/bbsd_single.c: setuid(BBSUID);
./sshbbsd/sshd.c: setreuid(BBSUID, BBSUID);
./src/bbsd_single.c: setuid(BBSUID); /* sets the effective user ID of the current process. */
./src/bbsd_single.c: setreuid(BBSUID, BBSUID); /* setreuid sets real and effective user ID's
./src/bbsd_single.c: setuid(BBSUID);
./src/bbsd_single.c: setuid(BBSUID);
./src/site.h:#define BBSUID 501
./src/default.h:#ifndef BBSUID
./src/default.h:#error You must define BBSUID in site.h for your site!
./doc/INSTALL:BBSUID ?? BBSGID ???????? bbs ????? uid gid ?????????????????????./doc/INSTALL: grep "^#define.*BBSUID" fb2k-v2.h
./doc/INSTALL.redhat:BBSUID ?? BBSGID ???????? bbs ????? uid gid ?????????????????????
./doc/FAQ: ???????ж????? BBSUID ?? BBSGID ?????(?? site.h ?????)??
./innbbsd/inndchannel.c: if ((getuid() != (uid_t) BBSUID && getgid() != (gid_t) BBSGID)
./innbbsd/inndchannel.c: fprintf(stderr, "You should run INNBBSD as your bbs account (uid: %d) or group (gid: %d).\n", (uid_t) BBSUID, (gid_t) BBSGID);
./service/personaldns/main.c: setuid(BBSUID);
./service/personaldns/main.c: setreuid(BBSUID, BBSUID);
./site/default.h:#ifndef BBSUID
./site/default.h:#error You must define BBSUID in site.h for your site!
./site/fb2k-v2.h:#define BBSUID 501
./site/fb2k-v2.h~:#define BBSUID 501
./daemon/newpop3.c: setuid(BBSUID);
./daemon/newpop3.c: setreuid(BBSUID, BBSUID);
./daemon/newpop3.c: setuid(BBSUID);
./daemon/station.c: setuid(BBSUID);
./daemon/bbslogd.c: setuid(BBSUID);
./daemon/bbslogd.c: setreuid(BBSUID, BBSUID);
./daemon/miscd.c: setuid(BBSUID);
./daemon/miscd.c: setreuid(BBSUID, BBSUID);
You have mail in /var/spool/mail/bbs
【 在 dvlt (饿了就要吃!) 的大作中提到: 】
: 在bbs源代码的目录里
: grep -r BBSUID .
: 看看结果
: ...................
--
FROM 59.66.124.*
解决了,谢谢阿奔.
不过,那东西为什么要改,默认值为什么不设成500?
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: 修改fb2k-2v.h,把BBSUID和BBSGID都改为500(根据你上面给出的结果来看)
: 然后重新编译(应该是),完全停掉bbs服务先。
--
FROM 166.111.61.*