Re: Script for mailing /etc/passwd information

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

 



On Mon, 2009-06-01 at 08:16 -0500, Chris St. Pierre wrote:
> On Mon, 1 Jun 2009, Manuel Aróstegui wrote:
> Indeed.  No script is necessary:
> 
> mail -s "/etc/password on `hostname`" whoever@xxxxxxxxxxx < /etc/passwd

Exactly and to "fake" the FROM field I was talking about in my previous
email, just modify the /etc/mailname and change it to the one you want
to appear as sender. 

Manuel.

-- 
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