LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 12-16-2009, 06:22 PM   #1
Bob_D
LQ Newbie
 
Registered: May 2008
Location: Auckland NZ
Distribution: Fedora 8
Posts: 10

Rep: Reputation: 0
Pure-FTPD --with-uploadscript on Fedora 10


Hi,

Little bit of Background:

I am running an FTP server using Pure-FTPD which was a migration from an OS-X workstation to Fedora 10 - VMware esxi.

This was done for various reasons but the reason for choosing the Pure-FTPD app was due to an easier migration.

The system has been migrated for about a month and works very well. I installed it on the server using yum install pure-ftpd, configured it and imported all the accounts [about 150 accounts] so this is all fab. however we now want to see if we can get an upload notification.

This has lead me to look at the uploadscript option in pure-ftpd.
we use virtual users and the pure-pw file.

The Problem:

When we set the directive

Code:
# CallUploadScript yes
The ftp server hangs, I cant seem to see how to get this to work, from my investigation I think the issue is that the yum install is not building the app " --with-uploadscript " i have tried to do a hand install on a test Fedora 10 VM, I downloaded pure-ftpd-1.0.27.tar.gz and unpacked it, did a ./configure --with-uploadscript then a make and make install, nothing reports any errors but it doesnt seem to install anything. I can start the server from a command line but there are no config directories ? and even after creating a new user and a passwd-mkdb i cant log in to the server. but that most likely as i dont have a full configuration. but i can t find where to put the configuration files.

Every post i can find on this is based around Debian or something else nothing on Fedora,

can anyone help me with some idea where to go from here ? ether how to get the yum install to run the uploadscript or how to get a hand install to work.

Thanks in advance for any help

Bob
Attached Files
File Type: txt pure-ftpd.conf.txt (10.2 KB, 4 views)
 
Old 12-17-2009, 10:24 PM   #2
Bob_D
LQ Newbie
 
Registered: May 2008
Location: Auckland NZ
Distribution: Fedora 8
Posts: 10

Original Poster
Rep: Reputation: 0
Just for anyone esle that bumps into this ...

okay I have sorted this

So the issue was that you need to be running the script file to send the mail BEFORE you run pure-ftpd, I know thats obvious really.

The vanilla build of pure-ftp on fedora [yum install pure-ftpd] does have support for pure-uploadscript so i have got this to work now.

what i have just done is on a clean build of Fed12,

1) run yum install pure-ftpd
2) done the usual build process for users etc and enabled the CallUploadScript yes option. [let me know if you want the details of this]
3) Configured sendmail so it can send me the mail [again let me know if you want the basics of this]
4) created a script called /etc/pure-ftpd/newfile.sh
which looks like this
! /bin/sh
echo "$1 uploaded" | mail -s "New upload : $1" \ bobd@mhnz.co.nz

5) run the script
/usr/local/sbin/pure-uploadscript -B -r /etc/pure-ftpd/newfile.sh
6) run the ftp server [service pure-ftpd start]

and bingo upload a file and you get an e-mail, to simple really. now I just need to work out how to get at the other variables i believe are there and do something meaningfull with the information.

The basic e-mail looks like this

/FTP_Files/wibble/test2.txt uploaded

which is not to fanstastic

hope this helps someone else.. its has driven me NUTS!

Bob

Last edited by Bob_D; 12-17-2009 at 10:27 PM. Reason: drinking beer before typing
 
  


Reply

Tags
fedora 10, pureftpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
pure-ftpd roofy Linux - Software 6 03-05-2007 04:06 AM
Pure-Ftpd and MySql and Fedora core 5 olva Fedora 1 04-30-2006 07:45 AM
Pure-FTPD and Fedora 5 olva Fedora 1 04-27-2006 11:23 AM
pure-ftpd help hongman Linux - Software 16 04-06-2005 11:18 AM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration