Corrected some paths and permissions
This commit is contained in:
parent
031578fd81
commit
7fe30b1a02
6
SETUP.sh
6
SETUP.sh
@ -247,8 +247,8 @@ if [ "$OSTYPE" = "NetBSD" ]; then
|
|||||||
useradd -c "MBSE BBS Admin" -d $MHOME -g bbs -G wheel,dialer -m -s /usr/pkg/bin/bash mbse
|
useradd -c "MBSE BBS Admin" -d $MHOME -g bbs -G wheel,dialer -m -s /usr/pkg/bin/bash mbse
|
||||||
fi
|
fi
|
||||||
log "+" "[$?] Added user mbse"
|
log "+" "[$?] Added user mbse"
|
||||||
chmod 770 $MHOME
|
chmod 775 $MHOME
|
||||||
log "+" "[$?] chmod 770 $MHOME"
|
log "+" "[$?] chmod 775 $MHOME"
|
||||||
|
|
||||||
echo -n " writing '$MHOME/.profile'"
|
echo -n " writing '$MHOME/.profile'"
|
||||||
cat << EOF >$MHOME/.profile
|
cat << EOF >$MHOME/.profile
|
||||||
@ -285,7 +285,7 @@ fi
|
|||||||
chown mbse.bbs $MHOME/home
|
chown mbse.bbs $MHOME/home
|
||||||
log "+" "[$?] chown mbse.bbs $MHOME/home"
|
log "+" "[$?] chown mbse.bbs $MHOME/home"
|
||||||
chmod 770 $MHOME/home
|
chmod 770 $MHOME/home
|
||||||
log "+" "[$?] chmod 775 $MHOME/home"
|
log "+" "[$?] chmod 770 $MHOME/home"
|
||||||
if [ "$OSTYPE" = "Linux" ]; then
|
if [ "$OSTYPE" = "Linux" ]; then
|
||||||
useradd -c "MBSE BBS Login" -d $MHOME/home/bbs -g bbs -s $MHOME/bin/mbnewusr bbs
|
useradd -c "MBSE BBS Login" -d $MHOME/home/bbs -g bbs -s $MHOME/bin/mbnewusr bbs
|
||||||
log "+" "[$?] Added user bbs"
|
log "+" "[$?] Added user bbs"
|
||||||
|
@ -76,7 +76,7 @@ int CountFilearea(void)
|
|||||||
area.FileFind = TRUE;
|
area.FileFind = TRUE;
|
||||||
sprintf(area.BbsGroup, "LOCAL");
|
sprintf(area.BbsGroup, "LOCAL");
|
||||||
sprintf(area.NewGroup, "LOCAL");
|
sprintf(area.NewGroup, "LOCAL");
|
||||||
sprintf(area.Path, "%s/pub/local/common", CFG.ftp_base);
|
sprintf(area.Path, "%s/local/common", CFG.ftp_base);
|
||||||
fwrite(&area, sizeof(area), 1, fil);
|
fwrite(&area, sizeof(area), 1, fil);
|
||||||
fclose(fil);
|
fclose(fil);
|
||||||
chmod(ffile, 0640);
|
chmod(ffile, 0640);
|
||||||
|
@ -177,7 +177,7 @@ void load_maincfg(void)
|
|||||||
/*
|
/*
|
||||||
* Newfiles reports
|
* Newfiles reports
|
||||||
*/
|
*/
|
||||||
sprintf(CFG.ftp_base, "%s/ftp", getenv("MBSE_ROOT"));
|
sprintf(CFG.ftp_base, "%s/ftp/pub", getenv("MBSE_ROOT"));
|
||||||
CFG.newdays = 30;
|
CFG.newdays = 30;
|
||||||
CFG.security.level = 20;
|
CFG.security.level = 20;
|
||||||
CFG.new_split = 27;
|
CFG.new_split = 27;
|
||||||
@ -376,7 +376,7 @@ void load_maincfg(void)
|
|||||||
sprintf(CFG.ftp_msg_login, "/welcome.msg");
|
sprintf(CFG.ftp_msg_login, "/welcome.msg");
|
||||||
sprintf(CFG.ftp_msg_cwd, ".message");
|
sprintf(CFG.ftp_msg_cwd, ".message");
|
||||||
sprintf(CFG.ftp_msg_shutmsg, "/etc/nologin");
|
sprintf(CFG.ftp_msg_shutmsg, "/etc/nologin");
|
||||||
sprintf(CFG.ftp_upl_path, "%s/incoming", CFG.ftp_base);
|
sprintf(CFG.ftp_upl_path, "%s/ftp/incoming", getenv("MBSE_ROOT"));
|
||||||
sprintf(CFG.ftp_banner, "%s/etc/ftpbanner", getenv("MBSE_ROOT"));
|
sprintf(CFG.ftp_banner, "%s/etc/ftpbanner", getenv("MBSE_ROOT"));
|
||||||
sprintf(CFG.ftp_email, "sysop@%s", CFG.sysdomain);
|
sprintf(CFG.ftp_email, "sysop@%s", CFG.sysdomain);
|
||||||
sprintf(CFG.ftp_pth_filter, "^[-A-Za-z0-9_\\.]*$ ^\\. ^-");
|
sprintf(CFG.ftp_pth_filter, "^[-A-Za-z0-9_\\.]*$ ^\\. ^-");
|
||||||
|
Reference in New Issue
Block a user