MENG-BBS INDEX - PowerPoint PPT Presentation

1 / 33
About This Presentation
Title:

MENG-BBS INDEX

Description:

Title: PowerPoint Presentation Last modified by: Created Date: 1/1/1601 12:00:00 AM Document presentation format: Other titles – PowerPoint PPT presentation

Number of Views:344
Avg rating:3.0/5.0
Slides: 34
Provided by: ncuEduTw3
Category:
Tags: bbs | index | meng | adress

less

Transcript and Presenter's Notes

Title: MENG-BBS INDEX


1
MENG-BBS INDEX
  • BBS?? ????
  • ?? bbs group user
  • ????????
  • ?? BBS ????
  • BBS??
  • /etc/ ????
  • ?internet ?? ??????
  • ????
  • ???

2
??bbs???group user
  • ????bbs????? mkdir /home/bbs/
  • ???? /etc/passwd -vipw
  • ????UIDGID??????shell ??
  • bbs999999BBS user/bbs/sbin/nologin
  • bbsadm999999BBS Administrator/bbs-src/usr/lo
    cal/bin/tcsh
  • ?/etc/group???
  • bbs99bbs,bbsadm
  • ??????
  • chown R bbs /bbs (-R ????????)
  • chown R bbsadm /bbs-src
  • chown R bbsadm /bbs

3
  • ????
  • bbsadm
  • ????
  • ??source
  • ????
  • ??
  • ????root??
  • bbs
  • ??bbs daemon
  • ?????????bbs???
  • ?????????????

4
BBS?????? ????
  • ? bbsadm ????? ????
  • ftp ftp//php.twbbs.org/pub/bbs/Maple/Maple3
  • ??ftp?? -get
  • 1. MapleBBS-3.02-RELEASE.tgz
  • 2. MapleBBS-3.10-20000606-SNAP.tgz
  • ?Source Code????/bbs-src?
  • tar zxvf MapleBBS-3.02-RELEASE.tgz /bbs-src
  • tar zxvf MapleBBS-3.10-20000606-SNAP.tgz /bbs-src
  • - /bbs-src ??source code -????????

5
  • ??Makefile -/bbs-src/src/maple
  • ? BBSHOME ??????bbs???????
  • uncomment ??????? freebsd

6
  • ??config.h -vi /bbs-src/maple
  • define BOARDNAME ????
  • define BBSNAME ????
  • define MYHOSTNAME domain name
  • Domain name ?? http//www.twbbs.org/ ??
  • define BBSHOME /home/bbs
  • ?? bbs ????? /home/bbs, ???????
  • define MYBBSID ?????? (????)
  • define BBSUSER ?? bbs (???????)
  • define BBSUID 9999
  • ??????? uid ?? 9999, ???
  • define BBSGID 99
  • ??????? gid ?? 99, ???
  • define TAG_VALID "RougeBBSTo
  • / ?????token /

7
??????(??????)
  • cd ../maple -??bbs
  • make freebsd install
  • cd ../../util -?? sendmail mailpost?
  • make freebsd install ??cg(config)?. ??

8
??????
  • BBS??????????gt????/etc/sendmail.cf
  • 1.??BBS??????? 1.bbsmail 2.mailpost
  • bbsmail?????????BBS User?????mailpost?? E-Mail
    post ?????????????
  • -??util?????make install????????
  • 2. sendmail.cf ??

9
  • sendmail.cf -???????????
  • ??????(session)
  • Local and Program Mailer specification
  • ???,???????????? mailer ????
  • Mmailpost, P/bbs/bin/mailpost, FlsSDFMhPu,
    Ubbs, S10, R20/40, Amailpost u
  • Mbbsmail, P/bbs/bin/bbsmail, FlsSDFMhPu,
    Ubbs, S10, R20/40,
  • Abbsmail u
  • ?????1.?Mmailpost, ? P/bbs????? 2.
    Mbbsmail, ? P/home????? 3.A ?????
  • ???TAB????SPACE bar
  • ? P ?????????,?SPACE????

10
  • ?????? (session)
  • Ruleset 0 -- Parse Address
  • S0
  • ???,?? handle virtual users????,?????????,?????,
    ??????????,???TAB???
  • handle local hacks
  • R gt98 1
  • Rbbs lt _at_ w . gt mailpost
    bbs mailpost for bbs
  • R.bbs lt _at_ w .gt bbsmail 1 bbs mail
    gateway
  • everything else is a local name
  • Rbbs mailpost
    bbs mailpost for bbs
  • R.bbs bbsmail 1 bbs mail
    gateway

11
  • sendmail.cf ?????
  • ??sendmail -C/etc/sendmail.cf bt
  • ???gt -?????,????????
  • gt 0 bbs
  • rewrite ruleset 0 input bbs
  • rewrite ruleset 98 input bbs
  • rewrite ruleset 98 returns bbs
  • rewrite ruleset 0 returns mailpost
    bbs
  • ?????BBS user?xxx
  • gt 0 xxx.bbs
  • rewrite ruleset 0 input xxx . Bbs
  • rewrite ruleset 98 input xxx . Bbs
  • rewrite ruleset 98 returns xxx . bbs
  • rewrite ruleset 0 returns bbsmail
    xxx
  • ?????????????? gt????mailpost?bbsmail
  • ?? sendmail.cf -???TAB??rule?????
  • -???????????

12
  • ???? sendmail -??????????????
  • ??sendmail?pid
  • 1. cat /var/run/sendmail.pid
  • 2. ps auxgrep sendmail
  • ???root????,?kill 9??sendmail?process
  • ??sendmail -bd -q1h
  • -???? sendmail

13
BBS??
  • ?? bbsadm ??
  • cd bin/camera bin/account bin/xchatd
    innd/innbbsd
  • ??? root ????
  • bbs/bin/bbsd (?? bbs ???)
  • bbs/bin/gemd (??????????????)
  • bbs/bin/bguard (????????????)
  • bbs/bin/bpop3d (??????? BBS ??????????)
  • bbs/bin/bmtad ( ??? )
  • ??? bbs ????? mail daemon

14
  • ??????BBS
  • telnet host name or ip
  • telnet localhost
  • ?? sysop ?? ??????????

15
BBS ????
  • ?????
  • ????
  • ????
  • ??????
  • bin/camera bin/account
  • ??????????????????????, ????????????.?????? bbs,
    ???? sysop ????????? BBS ?????

16
BBS ???? - /etc/ ????
  • announce????
  • badid?????????? id
  • e-mail????? email ???????????
  • justified???????????????
  • justify?????????????

17
  • mail.acl???????????????????
  • mail.over???????????
  • re-reg????????? ?????????
  • sysop???? ??????
  • valid???????????????????????.

18
  • expire.conf
  • ???????????????
  • ???? ???? ????? ????? sysop 30
    3000 1000
  • ?? sysop ??????? 30 ?
  • ???? 1000 ??????????
  • ???? 1000 ???????????
  • ?????? 3000 ????????????
  • ?????? bbs/bin/expire ??

19
  • crontab ??
  • ?? ? ? ? ? ?
  • ???? ????????
  • ??
  • ?? 2 ? ???????
  • 2 bin/account
  • ?? 43 ? ??????
  • 43 bin/camera
  • ??3?30???expire.conf??????expire
  • 30 3 bin/expire

20
??????
  • ???????????
  • ??????BBS??news??
  • ?????????
  • ???????????BBS?
  • ????
  • ??????????

21
??????
  • ??????
  • ??/bbs-src/innbbsd/Makefile
  • ADMINUSER ????E-Mail??
  • BBSHOME BBS??? ?-/bbs
  • BBS_SRC BBS?Source???? ?-/bbs-src/maple
  • ??BBS??? uncomment?????
  • ???MapleBBS
  • ?make os-type
  • os-type?????????,?make bsd,????make???????

22
??????
  • ??BBS???
  • ??/bbs/innd/bbsname.bbs,????BBS?????

23
??????
  • ?????(nodelist.bbs)
  • /bbs/innd/nodelist.bbs??BBS?????
  • ?????????
  • ?????????????? ? ? ? ?-??Tab????
  • ?????BBS????
  • ??????IHAVE?POST??
  • IHAVE????????
  • POST?????????
  • ??????port
  • IHAVE(119) ??(News server)????
  • IHAVE(7777) ??(BBS?)????
  • POST(119) ?????News server??
  • POST(7777) ?????????!
  • ?????BBS????????IHAVE(7777),????bbsname.bbs???????
    ??

24
??????
  • ?????(newsfeeds.bbs)
  • /bbs/innd/newsfeeds.bbs
  • ?-???????
  • ?-?????????
  • ?-??????????
  • ????????
  • ?-????? -?????-?????(nodelist.bbs?)
  • ?? ????BBS?????? ????????????
    ?????? ???????????

25
??????
  • ??????
  • ??/bbs/innd/innbbsd i 7777
  • -7777 BBS??port number?
  • ??????(Client Gateway)
  • ?news??????
  • ?????????history??,???????,????????? ??????news
    server??????????active?,????
  • board name 0000000000 0000000001 y
  • ??,????,??bbsnnrp news-server-adress
    active-filename???

26
??????
  • ???????
  • nodelist.bbs
  • newsfeeds.bbs
  • ??????innbbsd
  • ?????????ctlinnbbsd?????????innbbsd??reload????,?
    ???bbs/innd/ctlinnbbsd reload???

27
bbs??????
  • ?BBS?home directory???????????,???????,??????????
    ????
  • bbs/adm/
  • ???????????BBS?????????,??????????gzip???,???????
    ????????????????,???backupfile-yymmdd.gz,?????????
    ,-??????,????????????,???????????????????,??????
    ?????????????????????????????,??????????/bbs-src??
    ?,/bbs??????BBS??????????
  • bbs/bin/
  • ??BBS?????????,??BBS???????????????,?????????/bbs
    -src/maple????????????

28
bbs??????
  • bbs/boards/
  • ?????????????,?????????????????,????????????????,
    ??????????,????????????????????????
  • bbs/etc/
  • ??BBS?????????,???UNIX?/etc????,?????????????????
    ??????,???????????????????,?????????
  • bbs/home/
  • ????????,????????????????,?????????,?????????????
    ,??????????,?????????

29
bbs??????
  • bbs/innd/
  • ???????????,????????????,??????????
  • bbs/man/
  • ???????????????,?bbs/boards/??,???????????,?????
    ???!
  • bbs/src/
  • ????Source code???,??????????????/bbs-src?
  • bbs/tmp/
  • ?????????????,??????????!
  • bbs/util/
  • ?????????????????!????????????????,??????????????
    ?????

30
bbs/??????
  • .BOARDS
  • ????????????????????????,????????????????????????
    ?,????????????,??????,?????????????????,??????????
    ????
  • .PASSWDS
  • ????????????????????????,?????????????????,??????
    ????????????,???????????????????????,????bbs/util
    ??????,?????????,???????????????????

31
bbs/??????
  • .useboard
  • ?????????????????????,???????????????????????????
    ??????,?????????????,?????????????,???????????
  • NOLOGIN
  • ???bbs/???????,??BBS?????????????BBS?,??????????
    ??????,????????BBS????????????????????????????????
    ??????,?????BBS?????????????

32
bbs/??????
  • logins.bad
  • ??????????????????,?????????,??????????? ??
    ??????
  • mailog
  • ?????????BBS??????,???bbsmail?mailpost??????,????
    ?????????????????? ???? ?? gt ????
  • note.ans
  • ???????BBS?????????,?????????,???ANSI??????,?????
    BBS??????,???????

33
bbs/??????
  • note.dat
  • ???????
  • usies
  • ???BBS ??????log?,??????????????????????,????????
    ,????????? ?? ?? ?? ???,?????????????
  • ENTER user??BBS?
  • EXIT user??BBS?
  • AXXED user?????
  • ?????EXIT,????????????ENTER?EXIT??????????????,??
    ???????????,????????????bbs/adm/????????
Write a Comment
User Comments (0)
About PowerShow.com