LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo access for a user to read mail files (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-access-for-a-user-to-read-mail-files-4175460928/)

slufoot80 05-06-2013 03:45 PM

sudo access for a user to read mail files
 
What do I do to give a user the ability to read mail files in the /var/spool/mqueue directory

TobiSGD 05-06-2013 04:10 PM

In the first place you won't use sudo for that, this is the wrong tool for the job.
This is a job for file permissions. On my Slackware systems the directory /var/spool/mqueue is owned by the user root and the group mail. So the easiest solution would be to add the user to the mail group to give him access to that directory.


All times are GMT -5. The time now is 10:52 AM.