Dovecot folder permission issue

Hi!

I'm reading through https://www.linode.com/docs/email/email … -and-mysql">https://www.linode.com/docs/email/email-with-postfix-dovecot-and-mysql and on this step:

> Verify that the permissions for /var/mail are as follows. The date and time will likely be different in your output:

drwxrwsr-x 2 root mail 4096 Mar 6 15:08 /var/mail

 % ls -ld /var/mail
drwxrwx--- 2 root mail 4096 Jul 29 14:43 /var/mail

How do set /var/mail to the correct permission to match 'drwxrwsr-x' as stated in the tutorial? It mentioned if the permission isn't correct that I need to re-run through the tutorial but I'm unable to find any answers. Your help would be greatly appreciated. Thanks!

–fragment

2 Replies

You use the chmod command. In your case, chmod g+s,o+rx /var/mail would be the command to use.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct