Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
81e3fe4d
Commit
81e3fe4d
authored
Jun 09, 2019
by
Paul Cammish
Browse files
Attempting to fix uid/gid assignment for FTP user
parent
85cd4fa3
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/sbin/sympl-filesystem-security
View file @
81e3fe4d
...
...
@@ -62,7 +62,7 @@ function secure_domain_dir()
find
"
${
domain
}
/public"
\(
-type
f
-o
-type
d
\)
\(
!
-uid
${
public_uid
}
-o
!
-gid
${
public_gid
}
\)
-exec
chown
${
public_uid
}
:
${
public_gid
}
{}
\;
setfacl
-R
-P
-d
-m
o
::rwx
-m
g::rwx
-m
o::rx
"
$domain
/public"
setfacl
-R
-d
-m
u
::rwx
-m
g::rwx
-m
o::rx
"
$
{
domain
}
/public
/
"
fi
...
...
ftp/lib/symbiosis/domain/ftp.rb
View file @
81e3fe4d
...
...
@@ -106,11 +106,13 @@ module Symbiosis
end
def
uid
@domain
.
uid
File
.
stat
(
self
.
public_dir
).
uid
# @domain.uid
end
def
gid
@domain
.
gid
File
.
stat
(
self
.
public_dir
).
gid
# @domain.gid
end
def
is_single_user?
...
...
ftp/pure-ftpd/conf/Umask
0 → 100644
View file @
81e3fe4d
113 002
Write
Preview
Supports
Markdown
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