Script for mailing /etc/passwd information

Manuel Aróstegui manuel at todo-linux.com
Mon Jun 1 13:24:11 UTC 2009


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 at example.com < /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.




More information about the redhat-list mailing list