Page 1 of 1

FTP server

Posted: Thu Oct 26, 2006 3:35 pm
by alex.barylski
Anyone know of a Linux FTP server which locks a file when requested from a client and only unlocks the file when the client either automatically closes session (expires?) or the user uploads a new file?

Basically I need an FTP server which prevents the file from being read or written too while a remote client has opened it?

Suggestions?

Posted: Fri Oct 27, 2006 6:57 am
by akimm
Maybe I'm not understanding your exact question, but can't you lock any file by setting its CHMOD to 000

IF this is the case,my preference is filezilla, which has a great GUI and wonderful functionallity, they have tarballs for it I believe, I had it on linux Fedora core 2 and RH9, however, you may or may not find it for your flavor.

Re: FTP server

Posted: Fri Oct 27, 2006 6:35 pm
by RobertGonzalez
Hockey wrote:Anyone know of a Linux FTP server which locks a file when requested from a client and only unlocks the file when the client either automatically closes session (expires?) or the user uploads a new file?

Basically I need an FTP server which prevents the file from being read or written too while a remote client has opened it?

Suggestions?
What have you come across so far hockey? I have no idea about locking, but I know use the vsFTP daemon. I am not sure if Filezilla offers a server. I thought it was just a client tool.

Posted: Fri Oct 27, 2006 11:09 pm
by akimm
Yea its a client, I didn't specify, or differentiate. My mistake, listen to Everah he knows more!

Posted: Fri Oct 27, 2006 11:09 pm
by alex.barylski
Zip...either I'm not looking deep enough on a per project basis (reading the features or understanding them completely) or there is simply nothing available...

When push comes to shove...maybe I can look into writing my own light weight FTP server which does as I require

Posted: Sat Oct 28, 2006 10:04 am
by akimm
its possible, but I think you can find one if you keep looking, don't quote me, but I thought my Ubuntu came with an FTP server.. I hope you find one, or... Good luck on yours!

Posted: Sat Oct 28, 2006 12:23 pm
by RobertGonzalez
I don't think it is so much that he is looking for a server as it is he wants one that locks files that are in some particular state of use.

Posted: Sat Oct 28, 2006 3:02 pm
by alex.barylski
^^^ That is correct...Ubuntu comes with an FTPd...but it doesn't do what I need or want it too...of course there are 100 ways to skin a cat...I'm sure I"ll figure something out...it was more of a POC problem I was interested in...nothing mission critical just yet :)

Posted: Sat Oct 28, 2006 3:14 pm
by akimm
in certain state of use?
why not use a function like flock? or functions akin to it?