- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: vsftpd and email notication
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 07:42 AM
тАО01-07-2004 07:42 AM
vsftpd and email notication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 08:08 AM
тАО01-07-2004 08:08 AM
Re: vsftpd and email notication
and to send mail....
echo "Found new file" | mail -s "the subject" your@email.address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 08:32 AM
тАО01-07-2004 08:32 AM
Re: vsftpd and email notication
What I am thinking is taking a listing of the dir and saved it to a file, then check it again sometime later and take a the listing of the dir and save it. Then do a checksum on the two files, if they differ (assuming they differ because new files was uploaded) than send an email out. What do you think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 10:16 AM
тАО01-07-2004 10:16 AM
Re: vsftpd and email notication
#!/bin/sh
/usr/sbin/in.ftpd
/usr/bin/checkftplogdiffs
When inetd or xinetd kills ftpd, it would trigger a check on the logs which would in turn email you if there has been a new file uploaded...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 11:42 AM
тАО01-07-2004 11:42 AM
Re: vsftpd and email notication
If you break out the ftp logging to its own file, you can use a grep | mail "subject" emailaddy script to let you know whats going on.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 05:41 PM
тАО01-07-2004 05:41 PM
Re: vsftpd and email notication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 12:39 AM
тАО01-08-2004 12:39 AM
Re: vsftpd and email notication
these are nice solution, but I am not doing this for security reasons. This ftp server, have serveral ftp accounts and someone within our company is responsible for downloading file when there are new files on the ftp server. The files are uploaded by third party member, but they do not notify when new files are uploaded. So I need something that will notify someone in our company that there are new files being uploaded, so we can go get them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 12:53 AM
тАО01-08-2004 12:53 AM
Re: vsftpd and email notication
You can edit /etc/hosts.allow file and to add a line like this....
vsftpd : IP (of the client that usually uploads the file) :spawn echo "There's some action from %c" |mail -s "FTP action" your_email_address
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 01:30 AM
тАО01-08-2004 01:30 AM
Re: vsftpd and email notication
vsftpd: warning: can't get client address: Bad file descriptor
any idea? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 02:58 AM
тАО01-08-2004 02:58 AM
Re: vsftpd and email notication
try only to send e-mail with this command?
echo "hi" |mail -s "Test" e-mail_address.