On 05/05/2013 03:08 PM, John Andersen wrote:
On 5/4/2013 7:24 PM, Linda Walsh wrote:
John Bennett wrote:
Trying to setup a couple of scripts, which part of the results are to send an email as a non-root user. Have setup postfix, and as root (sudo sendmail.....) can send a basic email through my ISPs mail server successfully.
If I try and send as a non-root user, get: "Absolute path to 'sendmail' is '/usr/sbin/sendmail', so running it may require superuser privileges (eg. root)." How can I (safely and securely, without opening up anything undesirable), set this up so a standard user can send? Thanks.
A standard user doesn't usually invoke sendmail directly.
They go through an email client like 'mailx' or a GUI like thunderbird or such. That said, a normal user "can" run sendmail to send a message without special privs -- but it isn't designed to be user friendly (no prompts).
They'd have to put /usr/sbin in their path, or you could put a link for sendmail in /usr/bin -> /usr/sbin/sendmal...
Since many releases ago I have scripts that just using /usr/bin/mail Its described here: http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-comman...
On my machine /isr/bin/mail is a link to mailx
/usr/bin/mailx is documented in man 1 mailx or on the web here See http://linux.die.net/man/1/mailx
Thanks! Mail seems to have done the trick... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org