LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2013, 04:45 PM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Rep: Reputation: Disabled
Smile 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
 
Old 05-06-2013, 05:10 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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.
 
  


Reply

Tags
mail, sudo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using sudo to give read access to specific directory savona Linux - Security 14 01-31-2012 11:50 AM
sudo access for a user to a script kaplan71 Linux - Security 1 01-18-2011 02:28 PM
visudo? I need to provide sudo access to Oracle User rohit724 Linux - Newbie 2 12-09-2010 11:25 AM
vsftpd read access for user accounts but needs write access ncsuapex Linux - Server 2 04-23-2010 11:51 AM
read mail from /var/mail/user with thunderbird cccc Debian 4 09-11-2006 08:53 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration