Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are mail files in /usr/mail are owned by daemon instead of the recipient?

daemon files mail recipient usr
0
Posted

Why are mail files in /usr/mail are owned by daemon instead of the recipient?

0

The mail delivery agent /bin/rmail needs to be able to chown(2) these files. It can not do so if you have removed the privilege CHOWN (see setprivgrp(1m); removing CHOWN is recommended to prevent cheating on disk quotas). To get around this, noting that /bin/rmail runs setgid to group mail, you can grant privilege CHOWN to group mail only by inserting the line “mail CHOWN” in /etc/privgroup. The change takes effect on the next reboot, or immediately if you execute the command “setprivgrp -f /etc/privgroup”. (Thanks to Jim Richardson

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.