Commit 81e3fe4d authored by Paul Cammish's avatar Paul Cammish
Browse files

Attempting to fix uid/gid assignment for FTP user

parent 85cd4fa3
......@@ -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
......
......@@ -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?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment