Saturday, September 4, 2010

Simple File Sharing with Pure-FTPD

I like this.

Pure-FTPD is in lucid puppy linux by default.
So, I put it to startup, on /etc/rc.d/rc.local
You can use with GUI :
Open Menu >> Network >> PcurlFtp file sharing
    
then
 
If the above steps are finished, the server is run and the script that runs the server will automatically be created in /etc/rc.d/rc.local

by default, the shared folder is / root / ftpd.If you want to move to a local hard disk, the following steps:
 1. Open the file / etc / passwd file with a text editor
 2. Replace some of the contents of the text below:

   
ftp:x:1000:1000:Linux User,,,:/root/ftpd: /bin/sh
   
with ftp:x:1000:1000:Linux User,,,:/initrd/mnt/dev_ro2/somefolder:/bin/sh
    
(I choose /init/mnt/dev_ro2/somefolder because it is automatically mounted when booting)


3.
Chown somefolder with the command:     # Chown ftp:root 
/initrd/mnt/dev_ro2/somefolder 
4. Restart server : run /etc/rc.d/rc.local, or reboot after remastering. 

1 comment:

  1. thanks for the tutorial ; -)

    Chown should be chown (could be confusing for beginners)

    Using this command allowed me to copy to ~/ftpd from a client computer, but I still get a permissions errors? Any ideas.

    ReplyDelete