mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Update v-fix-user-permissions
This commit is contained in:
parent
8e34db9a71
commit
93b4b1e466
1 changed files with 6 additions and 0 deletions
|
@ -36,9 +36,15 @@ is_object_valid 'user' 'USER' "$user"
|
|||
find /home/$user/conf/mail/ -type d -exec chown Debian-exim:mail {} \;
|
||||
find /home/$user/conf/mail/*/ -type f -exec chown Debian-exim:mail {} \;
|
||||
find /home/$user/conf/mail/*/ -name "passwd" -type f -exec chown dovecot:mail {} \;
|
||||
|
||||
find /home/$user/mail/ -type d -exec chown $user:mail {} \;
|
||||
find /home/$user/mail/*/ -type d -exec chown $user:mail {} \;
|
||||
find /home/$user/mail/*/ -type f -exec chown $user:mail {} \;
|
||||
find /home/$user/mail/*/ -type d -exec chmod u+rwx {} \;
|
||||
find /home/$user/mail/*/ -type d -exec chmod g+rwx {} \;
|
||||
find /home/$user/mail/*/ -type f -exec chmod u+rw {} \;
|
||||
find /home/$user/mail/*/ -type f -exec chmod g+rw {} \;
|
||||
|
||||
|
||||
find /home/$user/conf/dns/ -type f -exec chown root:bind {} \;
|
||||
find /home/$user/conf/ -type d -exec chown root:root {} \;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue