Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
37c128b9
Commit
37c128b9
authored
Jun 28, 2019
by
Paul Cammish
Browse files
Updated permissions for config/dkim
parent
c775bc5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/debian/changelog
View file @
37c128b9
sympl-core (10.0.190628.0) stable; urgency=medium
* Adjusted permissions for config/dkim
-- Paul Cammish <sympl@kelduum.net> Fri, 28 Jun 2019 16:25:19 +0100
sympl-core (10.0.190625.0) stable; urgency=medium
* First update for sympl command line
...
...
core/sbin/sympl-filesystem-security
View file @
37c128b9
...
...
@@ -103,7 +103,7 @@ Require valid-user" > "${domain}/public/htdocs/stats/.htaccess"
if
[
-d
${
domain
}
/config
]
;
then
find
"
${
domain
}
/config"
\(
-type
f
-o
-type
d
\)
\(
!
-user
sympl
-o
!
-group
sympl
\)
!
-name
'dkim.key'
!
-path
'*ssl/sets*'
-exec
chown
sympl:sympl
{}
\;
find
"
${
domain
}
/config"
\(
-type
f
-o
-type
d
\)
\(
!
-user
sympl
-o
!
-group
sympl
\)
!
-name
'dkim.key'
!
-name
'dkim'
!
-path
'*ssl/sets*'
-exec
chown
sympl:sympl
{}
\;
if
[
-d
"
${
domain
}
/config/ssl/sets"
]
;
then
find
"
${
domain
}
/config/ssl/sets"
\(
!
-user
sympl
-o
!
-group
ssl-cert
\)
-exec
chown
sympl:ssl-cert
{}
\;
...
...
@@ -113,8 +113,8 @@ Require valid-user" > "${domain}/public/htdocs/stats/.htaccess"
# The group doesn't exist if exim/sympl-mail is not installed.
if
[
$(
grep
-c
'^Debian-exim:'
/etc/group
)
==
1
]
;
then
find
"
${
domain
}
/config"
-maxdepth
1
-type
f
-name
'dkim.key'
\(
!
-group
Debian-exim
-o
!
-user
sympl
\)
-exec
chown
sympl:Debian-exim
{}
\;
find
"
${
domain
}
/config"
-maxdepth
1
-type
f
-name
'dkim.key'
!
-perm
640
-exec
chmod
640
{}
\;
find
"
${
domain
}
/config"
-maxdepth
1
-type
f
\(
-name
'dkim'
-o
-name
'dkim.key'
\)
\(
!
-group
Debian-exim
-o
!
-user
sympl
\)
-exec
chown
sympl:Debian-exim
{}
\;
find
"
${
domain
}
/config"
-maxdepth
1
-type
f
\(
-name
'dkim'
-o
-name
'dkim.key'
\)
!
-perm
640
-exec
chmod
640
{}
\;
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment