01-21-2009
1) Each time you process the directory, touch a flag file. Then use find /pathname -newer /path/to/flagfile. Doesn't really save you the overhead of running find but saves you having to do comparisons.
2) Does vsftpd keep the file open for the entire duration of the transfer? If so you could use fuser on the file until it shows no processes accessing it, and then assume that the upload is complete. Normally the best way is to upload files to a temporary name and then rename them when complete, but that requires end-user actions which probably aren't appropriate in your situation.
I'm kind of surprised though that vsftpd doesn't log an upload complete event, even at a not very verbose level?
Incidentally, if you are prepared to consider a commercial product, Tumbleweed's SecureTransport is a good product for doing most of what you describe... i.e. triggered actions based on incoming files, etc.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm so new to sys admin work that my ears haven't dried yet.
Here's my question:
what scripts are available to gather pkginfo, prtdiag, and volume info?
I need to gather this type of info from 18 servers of various types:
oracle db servers, license servers, nis masters and slaves, etc.... (2 Replies)
Discussion started by: antalexi
2 Replies
2. Programming
I'm looking for example C source of how to get file system information on AIX systems. Does anyone have anything? (3 Replies)
Discussion started by: StuBob
3 Replies
3. Shell Programming and Scripting
trying to exclude hostnames ending in "s" from a host file:
# cat hosts
ssef
ssefd
ssefsfff
ssefsfs
# for x in `cat hosts`; do echo "${x/*s}" ;done
ef
efd
fff
#
How can I echo/or not echo only 'ssefsfs' ??
thanks (4 Replies)
Discussion started by: prkfriryce
4 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Today I was just fooling around with directories and faced this. I create a directory 'testdir' and create a file 'myfile' inside it.
gandalf@gondor:~$ mkdir testdir
gandalf@gondor:~$ cd testdir
gandalf@gondor:~/testdir$ touch myfile
Then I set the following permissions for the... (7 Replies)
Discussion started by: ranj@chn
7 Replies
5. Shell Programming and Scripting
Hi
Have a file called ldap.list:
******
"o=unix forum"
o=groups
******
i wrote a basic script that runs:
for i in `cat ldap.list`
do
ldapsearch -h host -p 389 -b $i
THE PROBLEM: - It looks like when the for i in cat ldap.list runs, it doesn't seem to care about the " ", it... (2 Replies)
Discussion started by: littlefrog
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
how do i look at the basic server info through terminal on mac. I have the username and password for a web server and i am assigned to add a new url to the web server, but i have no idea where to start. how do i check what kind of server it is? how do i get the DNS information? most... (0 Replies)
Discussion started by: mj330
0 Replies
7. UNIX for Dummies Questions & Answers
If your boss ask you to create a template for all UNIX systems. Max 10 questions of the system. What would you put down?
The system can be any UNIX flavor.
Some examples:
1. system name
2. OS
3. ETC
What would be for you the most important and relevants. (2 Replies)
Discussion started by: 300zxmuro
2 Replies
8. IP Networking
Hi,
What is the best reference that gives in detail on nic cards configuration , assigning multiple ip addresses to a single interface, netlink library etc and all basic stuff at this level..?
Thanks (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies
9. Programming
So, I'm actually new to programming, and thought some basics would be really benefiting to me, I'm not really asking to be spoon-fed with everything you know, I just need some info to show where should i start, I can figure the rest by myself, but really am in doubt about which programming language... (3 Replies)
Discussion started by: MEdgeworth
3 Replies
10. Solaris
Hello,
I am creating a new disk using the following command:
dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k
after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB)
ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
10 Replies
LEARN ABOUT CENTOS
vsftpd
VSFTPD(8) BSD System Manager's Manual VSFTPD(8)
NAME
vsftpd -- Very Secure FTP Daemon
SYNOPSIS
vsftpd [configuration file and / or options]
DESCRIPTION
vsftpd is the Very Secure File Transfer Protocol Daemon. The server can be launched via a ``super-server'' such as inetd(8) or xinetd(8).
Alternatively, vsftpd can be launched in standalone mode, in which case vsftpd itself will listen on the network. This latter mode is easier
to use, and recommended. It is activated by setting listen=YES in /etc/vsftpd/vsftpd.conf. Direct execution of the vsftpd binary will then
launch the FTP service ready for immediate client connections.
Systemd changes the vsftpd daemon start-up. The vsftpd package contains vsftpd-generator script generating symbolic links to /var/run/sys-
temd/generator/vsftpd.target.wants directory. The generator is called during e.g. 'systemctl --system daemon-reload'. All these symbolic
links link /usr/lib/systemd/system/vsftpd@.service file. The vsftpd daemon(s) is/are controlled by one of following ways:
1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
# systemctl {start,stop,...} vsftpd[.service]
2. Single daemon using /etc/vsftpd/<conf-name>.conf
# systemctl {start,stop,...} vsftpd@<conf-name>[.service]
3. All instances together
# systemctl {restart,stop} vsftpd.target
See systemd.unit(5), systemd.target(5) for further details.
OPTIONS
An optional configuration file or files may be given on the command line. These files must be owned as root if running as root. Any command
line option not starting with a "-" character is treated as a config file that will be loaded. Note that config files are loaded in the
strict order that they are encountered on the command line. If no config files are specified, the default configuration file of
/etc/vsftpd/vsftpd.conf will be loaded, after all other command line options are processed.
Supported options are:
-v Print the version information and exit, even if other options are encountered.
-ooption=value
Set a single option, value pair as per the format in the config file. Multiple -o options are supported, and they are applied in
strict order relative to their appearance on the command line, including intermingling with loading of config files.
EXAMPLES
vsftpd -olisten=NO /etc/vsftpd/vsftpd.conf -oftpd_banner=blah
That example overrides vsftpd's built-in default for the "listen" option to be NO, but then loads /etc/vsftpd/vsftpd.conf which may override
that setting. Finally, the "ftpd_banner" setting is set to "blah", which overrides any default vsftpd setting and any identical setting that
was in the config file.
FILES
/etc/vsftpd/vsftpd.conf
/usr/lib/systemd/system/vsftpd.service
/usr/lib/systemd/system/vsftpd@.service
/usr/lib/systemd/system/vsftpd.target
SEE ALSO
vsftpd.conf(5) systemd.unit(5)
March 8, 2001