Corrected some paths and permissions

This commit is contained in:
Michiel Broek 2002-02-08 15:38:32 +00:00
parent 031578fd81
commit 7fe30b1a02
3 changed files with 6 additions and 6 deletions

View File

@ -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
fi
log "+" "[$?] Added user mbse"
chmod 770 $MHOME
log "+" "[$?] chmod 770 $MHOME"
chmod 775 $MHOME
log "+" "[$?] chmod 775 $MHOME"
echo -n " writing '$MHOME/.profile'"
cat << EOF >$MHOME/.profile
@ -285,7 +285,7 @@ fi
chown mbse.bbs $MHOME/home
log "+" "[$?] chown mbse.bbs $MHOME/home"
chmod 770 $MHOME/home
log "+" "[$?] chmod 775 $MHOME/home"
log "+" "[$?] chmod 770 $MHOME/home"
if [ "$OSTYPE" = "Linux" ]; then
useradd -c "MBSE BBS Login" -d $MHOME/home/bbs -g bbs -s $MHOME/bin/mbnewusr bbs
log "+" "[$?] Added user bbs"

View File

@ -76,7 +76,7 @@ int CountFilearea(void)
area.FileFind = TRUE;
sprintf(area.BbsGroup, "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);
fclose(fil);
chmod(ffile, 0640);

View File

@ -177,7 +177,7 @@ void load_maincfg(void)
/*
* 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.security.level = 20;
CFG.new_split = 27;
@ -376,7 +376,7 @@ void load_maincfg(void)
sprintf(CFG.ftp_msg_login, "/welcome.msg");
sprintf(CFG.ftp_msg_cwd, ".message");
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_email, "sysop@%s", CFG.sysdomain);
sprintf(CFG.ftp_pth_filter, "^[-A-Za-z0-9_\\.]*$ ^\\. ^-");