diff --git a/ChangeLog b/ChangeLog index 93798bf1..ced97470 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4261,6 +4261,7 @@ v0.33.19 26-Oct-2001 mblogin and mbuseradd. Started NetBSD port, is in testing fase. Added support for xinetd. + Fixed filemodes for some directories and data files. SETUP.sh: Better grep to check for excisting usernames like bbs, mbse. @@ -4303,6 +4304,7 @@ v0.33.19 26-Oct-2001 now in a more logical order for a first system setup. Most datafiles are now saved mode 0640 exept the files that need to be rewritten by users, they have mode 0660. + The filemodes are always checked and corrected during startup. In the file database editor the default choice was 0 in stead of -. When a file area is made unavailable in menu 8.4, first the diff --git a/Makefile b/Makefile index 46ace2b2..a8fdae0f 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,12 @@ install: ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/etc/maptabs ; \ fi @chmod 0775 ${PREFIX}/etc + @if [ -f ${PREFIX}/etc/lastcall.data ] ; then \ + chmod 0660 ${PREFIX}/etc/lastcall.data ; \ + fi + @if [ -f ${PREFIX}/etc/sysinfo.data ] ; then \ + chmod 0660 ${PREFIX}/etc/sysinfo.data ; \ + fi @if [ ! -d ${PREFIX}/doc ] ; then \ mkdir ${PREFIX}/doc ; \ ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/doc ; \ diff --git a/mbfido/Makefile b/mbfido/Makefile index 6a0080e3..881c350c 100644 --- a/mbfido/Makefile +++ b/mbfido/Makefile @@ -100,6 +100,7 @@ install: all rm -f ${BINDIR}/mbnews ln -s ${BINDIR}/mbfido ${BINDIR}/mbnews (cd ${PREFIX}; tar xfz ${PACKAGE}-${VERSION}/mbfido/maptabs.tgz; ${CHOWN} ${OWNER}.${GROUP} etc/maptabs/*) + chmod 0775 ${PREFIX}/etc filelist: Makefile BASE=`pwd`; \ diff --git a/mbfido/maptabs.tgz b/mbfido/maptabs.tgz index 9270b3e6..a527a438 100644 Binary files a/mbfido/maptabs.tgz and b/mbfido/maptabs.tgz differ diff --git a/mbsetup/m_archive.c b/mbsetup/m_archive.c index 13664466..b0eb2d0d 100644 --- a/mbsetup/m_archive.c +++ b/mbsetup/m_archive.c @@ -270,6 +270,7 @@ void CloseArchive(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_domain.c b/mbsetup/m_domain.c index d71db55c..d57c7d78 100644 --- a/mbsetup/m_domain.c +++ b/mbsetup/m_domain.c @@ -186,6 +186,7 @@ void CloseDomain(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_farea.c b/mbsetup/m_farea.c index dd7b2bdd..40986b8e 100644 --- a/mbsetup/m_farea.c +++ b/mbsetup/m_farea.c @@ -167,6 +167,7 @@ void CloseFilearea(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_ff.c b/mbsetup/m_ff.c index c3063668..dcad7435 100644 --- a/mbsetup/m_ff.c +++ b/mbsetup/m_ff.c @@ -172,6 +172,7 @@ void CloseFilefind(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_fgroup.c b/mbsetup/m_fgroup.c index 1b59ac51..04b6fd4d 100644 --- a/mbsetup/m_fgroup.c +++ b/mbsetup/m_fgroup.c @@ -185,6 +185,7 @@ void CloseFGroup(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_fido.c b/mbsetup/m_fido.c index 79ded325..7501a5e1 100644 --- a/mbsetup/m_fido.c +++ b/mbsetup/m_fido.c @@ -203,6 +203,7 @@ void CloseFidonet(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_hatch.c b/mbsetup/m_hatch.c index 9a2190bf..a494d8fb 100644 --- a/mbsetup/m_hatch.c +++ b/mbsetup/m_hatch.c @@ -191,6 +191,7 @@ void CloseHatch(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_lang.c b/mbsetup/m_lang.c index 79c232ec..a472c96d 100644 --- a/mbsetup/m_lang.c +++ b/mbsetup/m_lang.c @@ -236,6 +236,7 @@ void CloseLanguage(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_limits.c b/mbsetup/m_limits.c index 09759f6c..c81e27d4 100644 --- a/mbsetup/m_limits.c +++ b/mbsetup/m_limits.c @@ -238,6 +238,7 @@ void CloseLimits(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_magic.c b/mbsetup/m_magic.c index ec2602cc..285bec38 100644 --- a/mbsetup/m_magic.c +++ b/mbsetup/m_magic.c @@ -182,6 +182,7 @@ void CloseMagics(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_marea.c b/mbsetup/m_marea.c index a6def04c..201a9234 100644 --- a/mbsetup/m_marea.c +++ b/mbsetup/m_marea.c @@ -277,6 +277,7 @@ void CloseMsgarea(int Force) return; } } + chmod(fin, 0660); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_mgroup.c b/mbsetup/m_mgroup.c index a772a7c9..b304cac1 100644 --- a/mbsetup/m_mgroup.c +++ b/mbsetup/m_mgroup.c @@ -195,6 +195,7 @@ void CloseMGroup(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_modem.c b/mbsetup/m_modem.c index 14dd22f7..7c7d1af2 100644 --- a/mbsetup/m_modem.c +++ b/mbsetup/m_modem.c @@ -253,6 +253,7 @@ void CloseModem(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_new.c b/mbsetup/m_new.c index d295208b..4b3f71ed 100644 --- a/mbsetup/m_new.c +++ b/mbsetup/m_new.c @@ -224,6 +224,7 @@ void CloseNewfiles(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_ngroup.c b/mbsetup/m_ngroup.c index a6703b7a..182257cb 100644 --- a/mbsetup/m_ngroup.c +++ b/mbsetup/m_ngroup.c @@ -191,6 +191,7 @@ void CloseNGroup(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_node.c b/mbsetup/m_node.c index bdf15262..ec49eef9 100644 --- a/mbsetup/m_node.c +++ b/mbsetup/m_node.c @@ -240,6 +240,7 @@ void CloseNoderec(int Force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_ol.c b/mbsetup/m_ol.c index 1f3d7edc..2ef13123 100644 --- a/mbsetup/m_ol.c +++ b/mbsetup/m_ol.c @@ -185,6 +185,7 @@ void CloseOneline(int force) return; } } + chmod(fin, 0660); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_protocol.c b/mbsetup/m_protocol.c index af58f788..ab344d8d 100644 --- a/mbsetup/m_protocol.c +++ b/mbsetup/m_protocol.c @@ -216,6 +216,7 @@ void CloseProtocol(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_service.c b/mbsetup/m_service.c index cab4b591..85b9789b 100644 --- a/mbsetup/m_service.c +++ b/mbsetup/m_service.c @@ -190,6 +190,7 @@ void CloseService(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_ticarea.c b/mbsetup/m_ticarea.c index 0dca430a..15a55bd3 100644 --- a/mbsetup/m_ticarea.c +++ b/mbsetup/m_ticarea.c @@ -225,6 +225,7 @@ void CloseTicarea(int Force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_tty.c b/mbsetup/m_tty.c index 4b42ed31..1fa52c9e 100644 --- a/mbsetup/m_tty.c +++ b/mbsetup/m_tty.c @@ -257,6 +257,7 @@ void CloseTtyinfo(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_users.c b/mbsetup/m_users.c index 4565b9e5..71b11bb5 100644 --- a/mbsetup/m_users.c +++ b/mbsetup/m_users.c @@ -157,6 +157,7 @@ void CloseUsers(int force) return; } } + chmod(fin, 0660); working(1, 0, 0); unlink(fout); } diff --git a/mbsetup/m_virus.c b/mbsetup/m_virus.c index 2cc64e77..c606b289 100644 --- a/mbsetup/m_virus.c +++ b/mbsetup/m_virus.c @@ -194,6 +194,7 @@ void CloseVirus(int force) return; } } + chmod(fin, 0640); working(1, 0, 0); unlink(fout); }