<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 28, 2021 at 10:16 AM Joe Wong <<a href="mailto:joewong99@gmail.com">joewong99@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 28, 2021 at 10:10 AM Benny Pedersen <<a href="mailto:me@junc.eu" target="_blank">me@junc.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2021-06-28 03:19, Joe Wong wrote:<br>
<br>
> What did I miss here ?<br>
<br>
<a href="https://askubuntu.com/questions/197459/how-to-fix-sudo-unable-to-open-read-only-file-system" rel="noreferrer" target="_blank">https://askubuntu.com/questions/197459/how-to-fix-sudo-unable-to-open-read-only-file-system</a><br>
<br>
for ubuntu here, i just think its same problem on centos<br></blockquote><div><br></div><div>Thanks Benny but there is no file systems error can be found at all in my Centos7 box. <br></div></div></div></blockquote><div><br></div><div><div>I delete /usr/var/run/dovecot, I can mkdir myself without error..</div><div><br></div><div>[root@new-ns1 run]# tail /var/log//messages<br>Jun 28 09:53:41 new-ns1 systemd: Started dnf makecache.<br>Jun 28 09:54:10 new-ns1 systemd: Started Dovecot IMAP/POP3 email server.<br>Jun 28 09:54:10 new-ns1 dovecot: Fatal: mkdir(/usr/var/run/dovecot) failed: Read-only file system<br>Jun 28 09:54:10 new-ns1 systemd: dovecot.service: main process exited, code=exited, status=89/n/a<br>Jun 28 09:54:10 new-ns1 systemd: Unit dovecot.service entered failed state.<br>Jun 28 09:54:10 new-ns1 systemd: dovecot.service failed.<br>[root@new-ns1 run]# mkdir dovecot<br>[root@new-ns1 run]# ls -l<br>total 4<br>drwxr-xr-x 2 root root 4096 Jun 28 09:54 dovecot</div><div><br></div><div>Moreover, if I launch dovecot manually<br><div><br>/usr/sbin/dovecot -c /usr/local/etc/dovecot/dovecot.conf<br><br></div><div>It
does not complain of any error and I can login my mailbox via IMAP
without any problem at all. I am running out of idea what could be the
problem here. Something to do with user's privileges when running under
systemd?</div></div><div><br></div><div><br></div> </div></div></div>