1833207 Members
2907 Online
110051 Solutions
New Discussion

mailx utility

 
SOLVED
Go to solution
Venky_2
Occasional Contributor

mailx utility

Hi,

There is a need to restrict mailx for few users.
Any suggestions.

Thanks
Venky
3 REPLIES 3
Stefan Farrelly
Honored Contributor
Solution

Re: mailx utility

change the permissions on /usr/bin/mailx to 550, and the group from bin to a new group, eg. mailx

Then only add those users who need to execute it into the new mailx group (/etc/group) you created, then only they (and root) can run it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Thierry Poels_1
Honored Contributor

Re: mailx utility

hi,

and what about other interfaces : mail, elm, ... and sendmail itself??

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Steven E. Protter
Exalted Contributor

Re: mailx utility

mailx uses sendmail which users can directly access as well.

You'll need to change the permissions in the binaries.

Once you get sendmail elm and mailx will stop working as well since they both use it.

You will need to check the permissions on sendmail every time you install new binaries. It is being patched quite frequently of late.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com