403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/mail/mailman/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/mail/mailman/files/patch-bin_check__perms
This might be submitted upstream, had not upstream decided
that 2.1.30 is the final release.

The messages/ directory with its .mo/.po files, and the
top installation directory, do not require group write
permissions. 

-- Matthias Andree (mandree@FreeBSD.org, 2020-04-14)

--- bin/check_perms.orig	2020-04-13 19:08:14.000000000 +0200
+++ bin/check_perms	2020-04-25 17:50:19.448831000 +0200
@@ -143,6 +143,14 @@ def checkwalk(arg, dirname, names):
         elif (os.path.commonprefix((path, mm_cfg.QUEUE_DIR))
               == mm_cfg.QUEUE_DIR):
             targetperms = QFILEPERMS
+        elif (path == mm_cfg.PREFIX or os.path.split(path)[1] in
+              ('archives', 'bin', 'cgi-bin', 'cron', 'icons', 'mail', 'scripts',)
+              or '/messages' in path
+              or '/templates' in path
+              or '/tests' in path
+              or '/Mailman' in path):
+            # don't require LC_MESSAGES to be group writable
+            targetperms = DIRPERMS & ~S_IWGRP & ~S_ISGID
         else:
             targetperms = DIRPERMS
         octperms = oct(targetperms)
@@ -192,7 +200,7 @@ def checkall():
             if e.errno <> errno.ENOENT: raise
             print C_('WARNING: directory does not exist: %(d)s')
             continue
-        if (mode & DIRPERMS) <> DIRPERMS:
+        if (mode & DIRPERMS) <> DIRPERMS and d <> mm_cfg.PREFIX:
             STATE.ERRORS += 1
             print C_('directory must be at least 02775: %(d)s'),
             if STATE.FIX:

Youez - 2016 - github.com/yon3zu
LinuXploit