Answer the question
In order to leave comments, you need to log in
Forcibly terminate a user's ftp session
In the presence of an ftp server on which files are uploaded around the clock.
To carry out those works, it is necessary to break the session with a specific user forcibly (the break is complete, since it takes a couple of minutes not to let him go to the server at all)
How can this be implemented?
If the "standard mechanism" in any ftp servers?
Thanks in advance for tips.
Answer the question
In order to leave comments, you need to log in
Offhand:
proftpd has ftpshut, it allows you to assign a shutdown time, a message for the user, etc., and so on, and also prohibits all incoming connections, details in mana :)
Pure-ftpd has pure-ftpwho, when called with the -s switch, it gives the result in an easily parsable form, and you can kill the session with a kill like this:
kill -15 `pure-ftpwho -s | grep USERNAME | awk --field-separator "|" '{print $1}'`
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question