Failed to open /var/mail/root : No such file or directory

If you’re receiving the following message on webmin- “Failed to open /var/mail/root : No such file or directory”.

Possible resolution is-

rumi@mordor:~$
rumi@mordor:~$ sudo touch /var/mail/rumi
rumi@mordor:~$ sudo chown thufir:mail /var/mail/rumi
rumi@mordor:~$ sudo chmod o-r /var/mail/rumi
rumi@mordor:~$ sudo chmod g+rw /var/mail/rumi
rumi@mordor:~$
rumi@mordor:~$ mail
No mail for thufir
thufir@mordor:~$

Share

Leave a Reply