Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello good morning
I'm trying to make a script or something to keep track of what users upload to a vftp server I don't know if you could help me
We absolutely can help you; if you'd like a script, then you need to post what YOU have written/done/tried on your own. Read the "Question Guidelines" link in my posting signature. We're happy to help if you're stuck, but we aren't going to write scripts for you.
Beyond that, there are many guides on how to enable verbose logging for a VSFTPD server. You don't say what version/distro of Linux you're using, or version of VSFTPD, but things like this:
We absolutely can help you; if you'd like a script, then you need to post what YOU have written/done/tried on your own. Read the "Question Guidelines" link in my posting signature. We're happy to help if you're stuck, but we aren't going to write scripts for you.
Beyond that, there are many guides on how to enable verbose logging for a VSFTPD server. You don't say what version/distro of Linux you're using, or version of VSFTPD, but things like this:
..may be all you need. Look at the vsftpd configuration pages for explanations on those options and what they do on your version.
thank you,
Of course, of course, I don't want them to write the script for me, but to guide me a bit because I don't know where to start, I have fairly good knowledge of bash but of no other language (ok bash is not a language as such)
I don't know whether to do a continuous tail to the atuh.log file and when X users connect, do an ls -l to that user's directory... but the truth is that it seems to me something very rudimentary... but I don't have a programmer mentality
oh and answering your questions my vsftpd is 3.0.3 and my distro is debian 10
Also say that on my server they connect through ftp but that they are caged users because the connections, although they are through an ftp for the users, are actually ssh since they are configured in the /etc/ssh/sshd_conf file with something like this:
Match user USER
Chroot Directory /mnt/ftp/USER
AllowTcpForwarding no
ForceCommand internal-sftp
Password Authentication yes
thank you,
Of course, of course, I don't want them to write the script for me, but to guide me a bit because I don't know where to start, I have fairly good knowledge of bash but of no other language (ok bash is not a language as such)
I don't know whether to do a continuous tail to the atuh.log file and when X users connect, do an ls -l to that user's directory... but the truth is that it seems to me something very rudimentary... but I don't have a programmer mentality oh and answering your questions my vsftpd is 3.0.3 and my distro is debian 10
...and...
Quote:
Originally Posted by relina
Also say that on my server they connect through ftp but that they are caged users because the connections, although they are through an ftp for the users, are actually ssh since they are configured in the /etc/ssh/sshd_conf file with something like this:
Code:
Match user USER
Chroot Directory /mnt/ftp/USER
AllowTcpForwarding no
ForceCommand internal-sftp
Password Authentication yes
SFTP is *NOT* using VSFTPD, so logging vsftp is different than logging sftp. Which one are you actually using?? You were given directives for configuring VSFTPD previously, which will exactly log what you're after.
If they're using SFTP, you need to look into using inotify on those home directories, which will do what you're after.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.