2
I have a box with iredmail installed in CentoOS 6.4.
When trying to access the vmail1 folder, which is the storage path for emails, It get the following:
[root@mx vmail]# dir -ls
total 12
4 drwxr-xr-x 4 vmail vmail 4096 Apr 27 2013 backup
4 drwx------ 2 vmail vmail 4096 Apr 27 2013 sieve
4 drwx------ 7 vmail vmail 4096 May 9 2013 vmail1
[root@mx vmail]# cd vmail1
-bash: cd: vmail1: Permission denied
[root@mx vmail]#
As you can see, I'm logged in as root. What can cause this reaction, and how can I solve it?
It appears that only the owner has permissions set, and the vmail group is the owner of that directory. Does your root account belong to the vmail group? – Ƭᴇcʜιᴇ007 – 2014-12-05T18:42:58.433
[root@mx vmail]# groups root vmail [root@mx vmail]# – Andreas Hinderberger – 2014-12-05T18:45:34.653
root is already member of vmail group, that's what i did as one of first things – Andreas Hinderberger – 2014-12-05T18:46:04.657
backup directory i can access without problems, sieve directory is "locked" too – Andreas Hinderberger – 2014-12-05T18:48:19.143
The reason you can get into the backup folder is because it has read and execute access for "all users" set. If you apply similar read access to the other folders can you get into them then? Also, after you added the Root user to the vmail group did you log out and log back in again? – Ƭᴇcʜιᴇ007 – 2014-12-05T18:52:28.033
yes, i logged out and in again – Andreas Hinderberger – 2014-12-05T18:56:06.827
If you apply read access for everyone to the other folders can you get into them then? – Ƭᴇcʜιᴇ007 – 2014-12-05T19:16:29.947
[root@mx vmail]# chmod -R 755 vmail1 chmod: changing permissions of
vmail1': Operation not permitted chmod: cannot read directory
vmail1': Permission denied – Andreas Hinderberger – 2014-12-05T19:18:54.940try
sudo chmod -R 755 vmail1
– Ƭᴇcʜιᴇ007 – 2014-12-05T19:25:37.573same result, permission denied on command execution – Andreas Hinderberger – 2014-12-05T19:32:15.743
Well I'm outta ideas. Hopefully someone with better Linux knowledge will roll through and recognize the problem.. :) – Ƭᴇcʜιᴇ007 – 2014-12-05T19:33:05.890
No problem. I have this headache since weeks already. Hopefully i will find a solution for it. Thanks for your try – Andreas Hinderberger – 2014-12-05T19:36:19.507