From 266832d54a5e66f5e496a5ce02eb1f0a030bf058 Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Thu, 8 Mar 2018 22:43:14 +0800
Subject: [PATCH] Fix possible improper permission on /var/vmail.
---
en_US/integrations/0-integration.mlmmj.ldap.md | 2 ++
en_US/integrations/0-integration.mlmmj.mysql.md | 2 ++
en_US/integrations/0-integration.mlmmj.pgsql.md | 2 ++
html/integration.mlmmj.ldap.html | 2 ++
html/integration.mlmmj.mysql.html | 2 ++
html/integration.mlmmj.pgsql.html | 2 ++
6 files changed, 12 insertions(+)
diff --git a/en_US/integrations/0-integration.mlmmj.ldap.md b/en_US/integrations/0-integration.mlmmj.ldap.md
index d81e3409..6f4103c3 100644
--- a/en_US/integrations/0-integration.mlmmj.ldap.md
+++ b/en_US/integrations/0-integration.mlmmj.ldap.md
@@ -88,6 +88,7 @@ groupadd mlmmj
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
On FreeBSD:
@@ -97,6 +98,7 @@ pw groupadd mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
## Postfix integration
diff --git a/en_US/integrations/0-integration.mlmmj.mysql.md b/en_US/integrations/0-integration.mlmmj.mysql.md
index cffabc5b..d23ea9a4 100644
--- a/en_US/integrations/0-integration.mlmmj.mysql.md
+++ b/en_US/integrations/0-integration.mlmmj.mysql.md
@@ -87,6 +87,7 @@ groupadd mlmmj
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
On FreeBSD:
@@ -96,6 +97,7 @@ pw groupadd mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
## Update SQL tables in `vmail` database
diff --git a/en_US/integrations/0-integration.mlmmj.pgsql.md b/en_US/integrations/0-integration.mlmmj.pgsql.md
index 6164d342..d0c1cfc8 100644
--- a/en_US/integrations/0-integration.mlmmj.pgsql.md
+++ b/en_US/integrations/0-integration.mlmmj.pgsql.md
@@ -88,6 +88,7 @@ groupadd mlmmj
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
On FreeBSD:
@@ -97,6 +98,7 @@ pw groupadd mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
```
## Update SQL tables in `vmail` database
diff --git a/html/integration.mlmmj.ldap.html b/html/integration.mlmmj.ldap.html
index 909c144c..c9322747 100644
--- a/html/integration.mlmmj.ldap.html
+++ b/html/integration.mlmmj.ldap.html
@@ -109,6 +109,7 @@ be stored under its home directory /var/vmail/mlmmj
:
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
On FreeBSD:
@@ -116,6 +117,7 @@ chmod -R 0700 /var/vmail/mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
Postfix integration
diff --git a/html/integration.mlmmj.mysql.html b/html/integration.mlmmj.mysql.html
index ec011e8c..b826acea 100644
--- a/html/integration.mlmmj.mysql.html
+++ b/html/integration.mlmmj.mysql.html
@@ -107,6 +107,7 @@ be stored under its home directory /var/vmail/mlmmj
:
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
On FreeBSD:
@@ -114,6 +115,7 @@ chmod -R 0700 /var/vmail/mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
Update SQL tables in vmail
database
diff --git a/html/integration.mlmmj.pgsql.html b/html/integration.mlmmj.pgsql.html
index 076d6f1a..0495bf24 100644
--- a/html/integration.mlmmj.pgsql.html
+++ b/html/integration.mlmmj.pgsql.html
@@ -108,6 +108,7 @@ be stored under its home directory /var/vmail/mlmmj
:
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
On FreeBSD:
@@ -115,6 +116,7 @@ chmod -R 0700 /var/vmail/mlmmj
pw useradd -m -g mlmmj -s /sbin/nologin -d /var/vmail/mlmmj mlmmj
chown -R mlmmj:mlmmj /var/vmail/mlmmj
chmod -R 0700 /var/vmail/mlmmj
+chmod 0755 /var/vmail # Make sure this directory is accessible by other users
Update SQL tables in vmail
database