FTP server

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

FTP server

Post 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?
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: FTP server

Post 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.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

Yea its a client, I didn't specify, or differentiate. My mistake, listen to Everah he knows more!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post 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!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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 :)
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

in certain state of use?
why not use a function like flock? or functions akin to it?
Post Reply