Dear Aki, Many thanks again. Thanks for explaining this. Very grateful for your assistance. Thanks a bunch ! Kunal On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> At minimum directories > > /run/media/computer/Storage/ > > need to have o+x, so you can do > > chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage > > and > > chown -R vmail:vmail /run/media/computer/Storage/Email > > Aki > > > On 25 February 2019 18:47 Kunal A. via dovecot <dovecot at dovecot.org> > wrote: > > > > > > Dear Aki, > > I have given permission to the folders Storage/Email to vmail. > > But the upper hierarchy is not under vmail . > > > > Full directory = /run/media/computer/Storage/Email > > > > /run/media/computer = not vmail > > Storage/Email = vmail > > > > How do I get this corrected ? It seems like vmail needs access through > all through run/media/computer . > > > > Please excuse my ignorance as I am not very familiar with filesystem > permissions. :-/ > > > > Sincere apologies for the trouble. > > > > Thanks > > Kunal A. > > > > > > > > > > > > > > > > > > On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi at open-xchange.com> > wrote: > > > I would only run it for the mail folders to be safe. > > > > > > Aki > > > > > > > On 25 February 2019 18:34 Kunal A. via dovecot <dovecot at dovecot.org> > wrote: > > > > > > > > > > > > Dear Aki, > > > > Many thanks for your feedback. Its what I figured I should do but I > was not sure how safe it was. > > > > > > > > Would it make sense to execute the following to /run/media/computer > so that the user/group is vmail? > > > > sudo chown -R vmail:vmail to the /run folder ? > > > > > > > > Also if this practice is safe to perform? > > > > > > > > Thanks > > > > Kunal A > > > > > > > > > > > > > > > > On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi < > aki.tuomi at open-xchange.com> wrote: > > > > > > > > > > > On 25 February 2019 18:19 Aki Tuomi via dovecot < > dovecot at dovecot.org> wrote: > > > > > > > > > > > > > > > > > > > On 25 February 2019 17:56 Kunal A. via dovecot < > dovecot at dovecot.org> wrote: > > > > > > > > > > > > > > > > > > > > > Hey Guys! > > > > > > > Many thanks for your feedback. I have kind of gotten it to > work but I just struggling to get the permissions of the folder correct. > Highly appreciate if someone could help me set the correct permission > settings for it . Terribly sorry for my ignorance. > > > > > > > > > > > > > > My error msg is listed below : - > > > > > > > > > > > > > > doveadm(vmail): Error: > stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied > (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, > dir owned by 0:0 mode=0750) > > > > > > > doveadm(vmail): Error: Can't open mailbox Storage/Email: > stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied > (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, > dir owned by 0:0 > > > > > > > > > > > > > > > > > > > You need to give write permissions to vmail on > /run/media/computer/Storage/Email > > > > > > > > > > > > You can > > > > > > - change owner to vmail > > > > > > - change group to vmail and add rwx for group > > > > > > - use posix ACLs > > > > > > - change mode to 0777 (unsafe) > > > > > > > > > > > > Aki > > > > > > > > > > And the same applies for all files & directories under > /run/media/computer/Storage/Email > > > > > > > > > > Aki > > > > > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190225/bea0973d/attachment.html>
Hey Aki, Sorry for the trouble but I am still unable to get it working. The file permissions for upper files are now drwxr-xr-x. but I think they need to be drwxr-x--x+ ? Any idea how to change it to that? Error log is below:- doveadm(lightdm): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=976(lightdm) egid=976(lightdm) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(dovenull): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=974(dovenull) egid=973(dovenull) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) ~ On Mon, Feb 25, 2019 at 11:58 AM Kunal A. <kunal.oa at gmail.com> wrote:> Dear Aki, > Many thanks again. Thanks for explaining this. > Very grateful for your assistance. > Thanks a bunch ! > Kunal > > > On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi at open-xchange.com> > wrote: > >> At minimum directories >> >> /run/media/computer/Storage/ >> >> need to have o+x, so you can do >> >> chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage >> >> and >> >> chown -R vmail:vmail /run/media/computer/Storage/Email >> >> Aki >> >> > On 25 February 2019 18:47 Kunal A. via dovecot <dovecot at dovecot.org> >> wrote: >> > >> > >> > Dear Aki, >> > I have given permission to the folders Storage/Email to vmail. >> > But the upper hierarchy is not under vmail . >> > >> > Full directory = /run/media/computer/Storage/Email >> > >> > /run/media/computer = not vmail >> > Storage/Email = vmail >> > >> > How do I get this corrected ? It seems like vmail needs access through >> all through run/media/computer . >> > >> > Please excuse my ignorance as I am not very familiar with filesystem >> permissions. :-/ >> > >> > Sincere apologies for the trouble. >> > >> > Thanks >> > Kunal A. >> > >> > >> > >> > >> > >> > >> > >> > >> > On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi at open-xchange.com> >> wrote: >> > > I would only run it for the mail folders to be safe. >> > > >> > > Aki >> > > >> > > > On 25 February 2019 18:34 Kunal A. via dovecot < >> dovecot at dovecot.org> wrote: >> > > > >> > > > >> > > > Dear Aki, >> > > > Many thanks for your feedback. Its what I figured I should do but >> I was not sure how safe it was. >> > > > >> > > > Would it make sense to execute the following to >> /run/media/computer so that the user/group is vmail? >> > > > sudo chown -R vmail:vmail to the /run folder ? >> > > > >> > > > Also if this practice is safe to perform? >> > > > >> > > > Thanks >> > > > Kunal A >> > > > >> > > > >> > > > >> > > > On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi < >> aki.tuomi at open-xchange.com> wrote: >> > > > > >> > > > > > On 25 February 2019 18:19 Aki Tuomi via dovecot < >> dovecot at dovecot.org> wrote: >> > > > > > >> > > > > > >> > > > > > > On 25 February 2019 17:56 Kunal A. via dovecot < >> dovecot at dovecot.org> wrote: >> > > > > > > >> > > > > > > >> > > > > > > Hey Guys! >> > > > > > > Many thanks for your feedback. I have kind of gotten it to >> work but I just struggling to get the permissions of the folder correct. >> Highly appreciate if someone could help me set the correct permission >> settings for it . Terribly sorry for my ignorance. >> > > > > > > >> > > > > > > My error msg is listed below : - >> > > > > > > >> > > > > > > doveadm(vmail): Error: >> stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied >> (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, >> dir owned by 0:0 mode=0750) >> > > > > > > doveadm(vmail): Error: Can't open mailbox Storage/Email: >> stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied >> (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, >> dir owned by 0:0 >> > > > > > > >> > > > > > >> > > > > > You need to give write permissions to vmail on >> /run/media/computer/Storage/Email >> > > > > > >> > > > > > You can >> > > > > > - change owner to vmail >> > > > > > - change group to vmail and add rwx for group >> > > > > > - use posix ACLs >> > > > > > - change mode to 0777 (unsafe) >> > > > > > >> > > > > > Aki >> > > > > >> > > > > And the same applies for all files & directories under >> /run/media/computer/Storage/Email >> > > > > >> > > > > Aki >> > > > > >> > > >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190225/650a8f2b/attachment-0001.html>
Can you run namei -vl /run/media/computer/Storage/Email/tmp the + at the end does not mean that, it means there is an extended POSIX ACL. Aki> On 25 February 2019 19:50 Kunal A. <kunal.oa at gmail.com> wrote: > > > Hey Aki, > Sorry for the trouble but I am still unable to get it working. The file permissions for upper files are now drwxr-xr-x. but I think they need to be drwxr-x--x+ ? > Any idea how to change it to that? > > > Error log is below:- > > doveadm(lightdm): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=976(lightdm) egid=976(lightdm) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) > doveadm(setroubleshoot): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) > doveadm(setroubleshoot): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) > doveadm(dovenull): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=974(dovenull) egid=973(dovenull) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) > ~ > > > > > On Mon, Feb 25, 2019 at 11:58 AM Kunal A. <kunal.oa at gmail.com> wrote: > > Dear Aki, > > Many thanks again. Thanks for explaining this. > > Very grateful for your assistance. > > Thanks a bunch ! > > Kunal > > > > > > > > On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > > At minimum directories > > > > > > /run/media/computer/Storage/ > > > > > > need to have o+x, so you can do > > > > > > chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage > > > > > > and > > > > > > chown -R vmail:vmail /run/media/computer/Storage/Email > > > > > > Aki > > > > > > > On 25 February 2019 18:47 Kunal A. via dovecot <dovecot at dovecot.org> wrote: > > > > > > > > > > > > Dear Aki, > > > > I have given permission to the folders Storage/Email to vmail. > > > > But the upper hierarchy is not under vmail . > > > > > > > > Full directory = /run/media/computer/Storage/Email > > > > > > > > /run/media/computer = not vmail > > > > Storage/Email = vmail > > > > > > > > How do I get this corrected ? It seems like vmail needs access through all through run/media/computer . > > > > > > > > Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/ > > > > > > > > Sincere apologies for the trouble. > > > > > > > > Thanks > > > > Kunal A. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > > > > I would only run it for the mail folders to be safe. > > > > > > > > > > Aki > > > > > > > > > > > On 25 February 2019 18:34 Kunal A. via dovecot <dovecot at dovecot.org> wrote: > > > > > > > > > > > > > > > > > > Dear Aki, > > > > > > Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was. > > > > > > > > > > > > Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? > > > > > > sudo chown -R vmail:vmail to the /run folder ? > > > > > > > > > > > > Also if this practice is safe to perform? > > > > > > > > > > > > Thanks > > > > > > Kunal A > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > > > > > > > > > > > > > > On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot at dovecot.org> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > On 25 February 2019 17:56 Kunal A. via dovecot <dovecot at dovecot.org> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > Hey Guys! > > > > > > > > > Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance. > > > > > > > > > > > > > > > > > > My error msg is listed below : - > > > > > > > > > > > > > > > > > > doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) > > > > > > > > > doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 > > > > > > > > > > > > > > > > > > > > > > > > > You need to give write permissions to vmail on /run/media/computer/Storage/Email > > > > > > > > > > > > > > > > You can > > > > > > > > - change owner to vmail > > > > > > > > - change group to vmail and add rwx for group > > > > > > > > - use posix ACLs > > > > > > > > - change mode to 0777 (unsafe) > > > > > > > > > > > > > > > > Aki > > > > > > > > > > > > > > And the same applies for all files & directories under /run/media/computer/Storage/Email > > > > > > > > > > > > > > Aki > > > > > > > > > > > > > > >