AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only

AIX 6.1: difference between mail and mailx

  • 1.  AIX 6.1: difference between mail and mailx

    Posted Tue June 02, 2009 09:53 AM

    Originally posted by: abdurixit


    Hi

    Who can explain the following situation:

    usmadm # whoami
    usmadm

    usmadm # mail -s test root < /etc/resolv.conf
    usmadm # tail -20 syslog.out

    Jun 2 15:41:46 sb000084 mail:info postfix/pickup5210276: 7D6B52201: uid=670 from=<_root_>
    ..........
    Jun 2 15:41:47 sb000084 mail:info postfix/qmgr548928: 8926021A5: removed

    usmadm # mailx -s test root < /etc/resolv.conf

    Jun 2 15:41:49 sb000084 mail:info postfix/pickup5210276: CF6112201: uid=670 from=<_usmadm_>
    .....
    Jun 2 15:41:50 sb000084 mail:info postfix/qmgr548928: D82F421A5: removed

    That means, as non-root user I can send an email as "root" if I use "mail" command and as myself if I use "mailx".
    Actually /usr/bin/Mail, /usr/bin/mail and /usr/bin/mailx are same binaries and hard linked to each other.
    I googled in this direction and did not find any answer.
    Is this a new feature in AIX 6.1 or is it a bug? If it is a new feature what is the background for that?

    Thanks.
    #AIX-Forum