Permission related issues

Bugs in eFa 4
Post Reply
zane93
Posts: 44
Joined: 08 Mar 2016 22:08

Permission related issues

Post by zane93 »

What are the proper permissions for the below. Getting this when running Update GeoIP Database. I have the owner as php-fpm and rw-r--r-x/0645 on "GeoLite2-Country.mmdb". The temp folder is root 0775.
Downloading file, please wait...
Unable to read or write to the /var/www/html/mailscanner/temp/ directory.
Woger
Posts: 67
Joined: 15 Mar 2017 10:54

Re: Permission related issues

Post by Woger »

This is from EFA 3

$ ls -la /var/www/html/mailscanner/temp/
total 3268
drwxrwxr-x 2 root apache 4096 Nov 22 2017 .
drwxr-xr-x 6 root root 4096 Feb 1 2018 ..
-rw-r--r-- 1 apache apache 1176796 Nov 22 2017 GeoIP.dat
-rw-r--r-- 1 apache apache 2151677 Nov 22 2017 GeoIPv6.dat
-rw-r--r-- 1 root root 84 Sep 14 2017 .gitignore
-rw-r--r-- 1 root root 0 Sep 14 2017 index.html

So looks like root:apache 775 chmodded
zane93
Posts: 44
Joined: 08 Mar 2016 22:08

Re: Permission related issues

Post by zane93 »

No go, same error.

ls -la /var/www/html/mailscanner/temp/
total 3584
drwxrwxr-x. 2 root apache 53 Feb 10 13:54 .
drwxr-xr-x. 7 root root 8192 Feb 10 10:32 ..
-rwxrwxr-x. 1 apache apache 3656998 Feb 9 21:52 GeoLite2-Country.mmdb
-rwxrwxr-x. 1 root root 0 Dec 30 16:38 index.html
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Permission related issues

Post by shawniverson »

Change the ownership to php-fpm on the temp folder and contents.

Code: Select all

sudo chown root:php-fpm /var/www/html/mailscanner/temp
sudo chown php-fpm:php-fpm /var/www/html/mailscanner/temp/GeoLite2-Country.mmdb
zane93
Posts: 44
Joined: 08 Mar 2016 22:08

Re: Permission related issues

Post by zane93 »

shawniverson wrote: 10 Feb 2019 21:58 Change the ownership to php-fpm on the temp folder and contents.

Code: Select all

sudo chown root:php-fpm /var/www/html/mailscanner/temp
sudo chown php-fpm:php-fpm /var/www/html/mailscanner/temp/GeoLite2-Country.mmdb
Yes thats the good stuff!

Downloading file, please wait...
GeoIP data file successfully downloaded
Download complete, unpacking files...

GeoIP data file successfully unpacked
Process completed!
Post Reply