Re: prohibit mailq use [was: user restriction]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 5 Jan 2004 12:07:53 -0800
"wintoe" <penguin@xxxxxxxxxxxxxx> wrote:

> > Is it possible to deny usage of mailq command?
>
> how about using chown to mailq. 
> 
> #groupadd GroupName
> #chown root.GroupName /path-to/mailq
> #chmod 750 /path-to/mailq
> #usermod -G userNam GroupName
>       Add the users u want to use mailq to GroupName..
> 

This really isn't the most secure way to prohibit users from using this
command.   They can simply copy the desired command from somewhere 
else into their home directory and execute it.

Instead protect the data that the mailq command uses; the following
should be enough:

chmod 700 /var/spool/mqueue

Which AFAIK is the permissions set on this directory at installation time.

Cheers,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux