RoundCube gives this error: You don't have permission to access this resource

nekooee

Verified User
Joined
Mar 9, 2015
Messages
13
RoundCube gives Forbidden an error when opening emails.

1654629616949.png


I checked the permissions and the result was as follows:
1654629844263.png

1654629993046.png


please help me.
 
When I double-click on the email, the email opens! But from the outside, it shows the same error!
 
Last edited:
Seems directory structure has different permissions. You're missing an execute flag.

Your /var/www should look like this:
dr-xr-x--x 10 webapps apache 4.0K 2022-03-12 02:15 www

The /var/www/html should be this:
drwxr-xr-x 5 root root 4.0K 2022-05-13 03:17 html
So that is chmod 755, not what you have.

Can you do a ls -la inside the roundcube directory too?
 
Your /var/www should look like this:
I changed this like you:
Code:
[root@server var]# chmod 551 /var/www
[root@server var]# ls -lad /var/www
dr-xr-x--x. 10 webapps apache 4096 Jan 29 02:41 /var/www

this too
The /var/www/html should be this:
Code:
[root@server www]# chmod 755 /var/www/html
[root@server www]# ls -lad /var/www/html
drwxr-xr-x. 5 webapps webapps 4096 Jun  7 20:56 /var/www/html

But there is still a problem.

Can you do a ls -la inside the roundcube directory too?
1654637637104.png
 
But there is still a problem.
Still the same permission problem? That's odd.

Normally the directory itself should be owned by root, but that shouldn't be causing this issue.

Maybe it's something underneath, try this:
chown webapps:webapps /var/www/html/roundcube -R

Check your /tmp directory so not inside /var/www or something like that, just your /tmp directory.
Check if it's set to chmod 1777.

If the error still persists, try to rebuild roundcube.
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rouncube

And just to be sure, restart apache.

If that still does not help, I don't know, you might need to check the roundcube logs and directadmin logs.
 
Still the same permission problem? That's odd.
yes

Maybe it's something underneath, try this:
I tested this before and the problem is not solved.

Check if it's set to chmod 1777
I also checked this and it is 1777.

If the error still persists, try to rebuild roundcube.
Unfortunately, I did this before and the problem is not solved.

One thing I noticed today is that some emails receive this error while some emails do not.
Also, if the problem was from the access level, it should not have been seen by double-clicking on the email! This is while when you double-click on the email, the same email that does not have access will open!

See the following record screen:
 
Reset your global permission with the permission script
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
Is exim even running correctly on the server? Because on one of the errors I've seen "MX or SRV record report no SMTP service".

If it's running correctly, then you might need to send in a support ticket.
 
Back
Top