summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-08 16:38:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-08 16:38:27 +0800
commitccd9c81ff6d7365eb4c11f7b881ae6c00a037d58 (patch)
tree19feee2ff5b8e3c7b6f2f448e7c2b7cf6b55fa66
parent32c5be9d2f09b62a67b31f92df953418cc186619 (diff)
downloadpttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.gz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.bz2
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.lz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.xz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.zst
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.zip
NO_SYSOP_ACCOUNT
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c4
-rw-r--r--sample/pttbbs.conf6
2 files changed, 10 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 9e135c76..2c182a87 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -609,12 +609,16 @@ login_query()
} else {
logattempt(cuser.userid, ' ');
if (strcasecmp("SYSOP", cuser.userid) == 0){
+#ifdef NO_SYSOP_ACCOUNT
+ exit(0);
+#else /* 自動加上各個主要權限 */
cuser.userlevel = PERM_BASIC | PERM_CHAT | PERM_PAGE |
PERM_POST | PERM_LOGINOK | PERM_MAILLIMIT |
PERM_CLOAK | PERM_SEECLOAK | PERM_XEMPT |
PERM_DENYPOST | PERM_BM | PERM_ACCOUNTS |
PERM_CHATROOM | PERM_BOARD | PERM_SYSOP | PERM_BBSADM;
mkuserdir(cuser.userid);
+#endif
}
break;
}
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index 28f148c0..2d50c647 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -136,6 +136,12 @@
這麼多個 fd , 以避免使用者狂連造成更大的負荷 (default: 0) */
//#define OVERLOADBLOCKFDS 128
+/* 若定義, 則 SYSOP帳號並不會自動加上站長權限.
+ 在第一次啟動時, 您並不能定義 (否則就拿不到站長權了) .
+ 而在設定完成後, 若您站長帳號並不叫做 SYSOP,
+ 則可透過 NO_SYSOP_ACCOUNT 關閉該帳號, 以避免安全問題發生. */
+//#define NO_SYSOP_ACCOUNT
+
/* 前進站畫面 */
#define INSCREEN \
"前進站畫面 (請至 pttbbs.conf 修改您的前進站畫面)"