Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-01-2002, 09:43 AM   #46
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30

New devlopement, I have to completely reboot my linux comp. Then manualy intiate the pftpd with the proftpd -n command. I really wish that i didnt have to do this all the time. How can I make pftpd startup on boot?!?
Old 04-15-2002, 04:22 PM   #47
LQ Newbie
Registered: Mar 2002
Location: Holland
Distribution: RH
Posts: 15

Rep: Reputation: 0
For those whove read the thread up to this point, here are some general pointers.

0. Server: proftpd (=one of many programs that serves ftp clients like cuteftp)
client: ftp (=program that make connections to servers)

1. Just start proftpd in standalone mode (the efficiency benefits for running in xinet.d, arn't worth the trouble... my opinion):
[root@fire user]# su -
[root@fire root]# proftpd -n
(obviously you need proftpd)

2. Test it by connecting to localhost:
[root@fire root]# ftp localhost
login: myname
password: mypass

3a. You can always get a list of processes with:
[root@fire root]# ps -ef | less

3b. You can always search a text file with:
[root@fire root]# grep "searchword*" textfile
(here you search for searchword)

3c. You can combine commands to check if some service (server/ process etc) is running:
[root@fire root]# ps -ef | grep proftpd
nobody 1343 1 0 Apr09 ? 00:00:00 proftpd (accepting connections)

4. You need a init.d script to start the process at boot time:
place it in /etc/init.d
and issue the command to start it at boot time (for redhat):
[root@fire root]# chkconfig --add proftpd

5. You might want a look at the way I set it all up (configuration per user on system with one anonymous directory):

6. You can add users to your system like so:
[root@fire root]# adduser ftptester
[root@fire root]# passwd ftptester
#dont allow shell login
[root@fire root]# chsh -s /sbin/nologin ftptester
Old 04-17-2002, 02:49 AM   #48
LQ Newbie
Registered: Apr 2002
Posts: 3

Rep: Reputation: 0
unrelated question but FTP related.

when in the process of currently ftp-ing a file (eg. a remote user put-ting a file on a linux server running wu-ftpd, the file which grows in the server (because a remote user is uploading)), is it considered an open file, so therefore it can't be opened for a download?

that could happen while a user is uploading something then an automatic job downloads the partially uploaded file... which would result in a corrupted/incomplete download... if so how can that be avoided?

thanks in advance...
Old 04-17-2002, 04:38 AM   #49
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
You can prevent that by using the command lsof to check for open files.
Old 04-17-2002, 11:27 AM   #50
LQ Newbie
Registered: Mar 2002
Location: Holland
Distribution: RH
Posts: 15

Rep: Reputation: 0
Actually you I dont think you'll be making your life easier with lsof.

lsof: a command to check for open files:

With lsof you would need to write a script that sends the content of open files to the proftp deamon to know of this list, like hiding the file by its permissions until its not considered open (a pretty difficult task, maybe done with perl)??? or am i missing something easy here?

I've never experienced this type of problems on my server. But I've read somewhere (about a month ago) that you can set a directive to have uploaded files be renamed at the end of the upload process... something like "myuploadedfile.doc.tmp" -> "myuploadedfile.doc" at end of upload. This would solve your problem... no?

(couldnt find the link at they are contunously trying to improve documentation by not showing any... strange and very frustrating)
Old 04-17-2002, 11:30 AM   #51
LQ Newbie
Registered: Mar 2002
Location: Holland
Distribution: RH
Posts: 15

Rep: Reputation: 0
Sorry: as your question relates to wuftpd, you would have to find a mechanisme within the wuftp config file that would rename it after uploading....

Dont know enough about wuftpd to know if this is possable.
Old 04-17-2002, 11:43 AM   #52
LQ Newbie
Registered: Mar 2002
Location: Holland
Distribution: RH
Posts: 15

Rep: Reputation: 0
Anyways, i found it, for proftpd you can accomplish this renaming strategy with the HiddenStor directive:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
binary ftp trouble anmsg Linux - Networking 2 10-14-2004 11:51 PM
FTP Trouble. boardinglaxplr Debian 2 10-01-2004 09:34 PM
ftp trouble mvanadel Linux - Networking 2 06-30-2004 05:30 PM
Trouble with FTP RaistlnMjr Linux - Newbie 15 10-13-2002 11:30 PM
FTP trouble eweborg Linux - Networking 2 03-04-2002 10:14 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration