How to use FTP server in Bionicpup64?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
courtage
Posts: 55
Joined: Thu Jul 16, 2020 10:31 am
Location: Puppy user since 2006
Has thanked: 29 times
Been thanked: 4 times

How to use FTP server in Bionicpup64?

Post by courtage »

Puppy Bionic 64 bit, with rockedge's realtime kernel

I used the old run-pureftpd script for years to run an ftp server for the odd times i needed to connect to my pups via ftp.

Almost always this access was from a Windoze box running Filezilla.

I needed to do this tonight & found I can't connect from Filezilla any more.

At the windows end, we just see

Code: Select all

Response: 530 Login authentication failed
Error: Critical error: Could not connect to server

while at the Puppy end we've done

Code: Select all

pure-ftpd -B

/var/log/messages looks like this:

Code: Select all

Nov 14 21:30:03 puppypc1545 ftp.info pure-ftpd: (?@LENOVO.lan) [INFO] New connection from LENOVO.lan
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM _pam_load_conf_file: unable to open /etc/pam.d/common-account
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM error loading (null)
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM _pam_init_handlers: error reading /etc/pam.d/pure-ftpd
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM _pam_init_handlers: [Critical error - immediate abort]
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM error reading PAM configuration file
Nov 14 21:30:03 puppypc1545 authpriv.err pure-ftpd: PAM pam_start: failed to initialize handlers
Nov 14 21:30:03 puppypc1545 ftp.err pure-ftpd: PAM pam_end: NULL pam handle passed
Nov 14 21:30:07 puppypc1545 ftp.warn pure-ftpd: (?@LENOVO.lan) [WARNING] Authentication failed for user [root]
Nov 14 21:30:07 puppypc1545 ftp.info pure-ftpd: (?@LENOVO.lan) [INFO] Logout.

So basically I've gone from a simple out-of-the-box service that does exactly what I wanted when I wanted, to entire uselessness, and I have no idea how or why or how to fix it and HELP plz :)

Geek3579
Posts: 266
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 79 times
Been thanked: 66 times

Re: How to use FTP server in Bionicpup64?

Post by Geek3579 »

I had the same or similar problem.

I solved it by going back to an older Puppy Linux and found where the pure-ftpd binary was residing, copied it, renamed it so it could be easily recognized, checked exec privileges, copied the file to my Bionic64 desktop and ran it when required.

A quick and unsophisticated way with no GUI, but it started the pureftp daemon and got me back to work. FTP server is brilliant and i wouldn't be without it.

I hope somebody comes up with a better answer !

( OR Try Fossapup64 , which as I recall has Pureftp in the menu and which works. )

User avatar
rockedge
Site Admin
Posts: 6378
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2578 times
Been thanked: 2533 times
Contact:

Re: How to use FTP server in Bionicpup64?

Post by rockedge »

I've made a PET file of pure-ftpd with all the components needed to start and stop from the menu using a GUI.

Fossapup64 version : http://rockedge.org/kernels/data/PET/Fo ... x86_64.pet
Bionic64 version: http://rockedge.org/kernels/data/PET/Bi ... x86_64.pet

Although I think that they are interchangeable.

User avatar
rockedge
Site Admin
Posts: 6378
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2578 times
Been thanked: 2533 times
Contact:

Re: How to use FTP server in Bionicpup64?

Post by rockedge »

@nathan-sr I have built a new pure-ftpd-1.0.50.PET package which updates the previous package's core components.

Direct Link -> https://rockedge.org/kernels/data/PET/B ... 1.0.50.pet

All packages and ISO's -> https://rockedge.org/kernels

User avatar
nathan-sr
Posts: 33
Joined: Thu Apr 07, 2022 10:12 am
Has thanked: 26 times
Been thanked: 17 times

Re: How to use FTP server in Bionicpup64?

Post by nathan-sr »

Thank you Rockedge. I have already used your earlier ftpd.pet program version to transfer files, between a Virtual Box guest and its host, successfully.

In fact, Puppy Linux Live CD and your ftpd server, helped me to create a whole disk image (using gzip) of two installed operating systems and transfer them to my host, to create a usb installation image out of them. For those, who would like to try out these images, can get them here :

1. https://sourceforge.net/projects/custom ... e-for-usb/
2. https://sourceforge.net/projects/custom ... e-for-usb/

In addition, I have documented the steps needed to do file transfers between VM Guest's and Hosts, using a Puppy Linux Live CD, on the Stackoverflow Query here : https://stackoverflow.com/a/71954520/16923394

Hope these tips are useful to the forum viewers here.

P.S. The gzip command that I used for imaging a whole disk on to another disk ( i.e. mounted as /mnt/sdb1 ) is :

Code: Select all

gzip </dev/sda >/mnt/sdb1/custom-mxlinux-image-for-usb-drives.gz

and the command to restore this image on to a empty usb drive ( i.e. sdc in this case ) is :

Code: Select all

gunzip </mnt/sdb1/custom-mxlinux-image-for-usb-drives.gz >/dev/sdc

Alternatively, one can use the free Balena Etcher Program ( Check Google ) to write it to an EMPTY USB or an EMPTY SDCARD Drive

Best Regards,

Nathan SR

Post Reply

Return to “Users”