Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Rep:
vsftp gives me fits - SlackWare 11
I've installed SlackWare 11 with a small root partition and a large partition for /home.
I want to allow a certain user to open a ftp session to my new server to put and get files.
I'm editing /etc/vsftpd.conf, and so far, I've been able to allow anonymous ftp upload and download. I've also been able to let the root user upload and download, but whenever I try to login as luser, I get:
I realize that this doesn't directly address your question, but have you considered OpenSSH? It will do exactly what you need and it will do it securely.
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757
Rep:
I used the default /etc/vsftpd.conf that came with Slackware 11.0, uncommented #write_enabled=YES, and was able to login with a local user account and upload files. I initially saw 530 login error, but I realized I was using the wrong password.
@cgjones: but at least vsftpd will enable secure file transfer easier than SSH-based solution.
From the manpage of vsftpd:
Quote:
ssl_enable
If enabled, and vsftpd was compiled against OpenSSL, vsftpd will support secure connections via SSL. This applies to the control connection (including login) and also data connections. You'll need a client with SSL support too. NOTE!! Beware enabling this option. Only enable it if you need it. vsftpd can make no guarantees about the security of the OpenSSL libraries. By enabling this option, you are declaring that you trust the security of your installed OpenSSL library.
Default: NO
I don't see how vsftpd is any easier then ssh. Don't get me wrong, I'm a fan of vsftpd, but based on the OP's description, I felt that ssh might be the better solution.
@bsdunix good to hear that. if "local_enable=YES" in your "/etc/vsftpd.conf" then local users in /etc/passwd are allowed to login.
@cgjones you are right. actually i was talking about easier clients. may be because most of the time i'm thinking in terms of my clients who were Windows-based non-technical people so (S)FTP was easier for 'em. but you are totally right. SSH is So Secure sHell
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Original Poster
Rep:
Quote:
Originally Posted by cgjones
I realize that this doesn't directly address your question, but have you considered OpenSSH? It will do exactly what you need and it will do it securely.
Will it really? I need the ftp server to stand ready to get and put files from a client that doesn't speak SSH. Are you saying that OpenSSH includes a plain-old non-secure ftp server in its package? I've only used it for the ssh terminal session feature and for a secure tunnel to enclose an rsync session.
Perhaps I might have been unclear above. The client side of this system is not a Linux box; it's just a dumb PC transferring a big ol' file via the only protocol it knows: FTP.
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Original Poster
Rep:
Quote:
Originally Posted by elsheikhmh
I didn't get that; do you have a user called luser in your /ect/passwd?
try:
Code:
cat /etc/passwd | grep luser
Good suggestion. Yes, I did remember to set-up the user and give him a home directory.
That reminds me, though... I wonder if I gave him a default shell? No, I didn't. I'll try adding /bin/bash and report back in a couple of hours whether or not that helped.
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Original Poster
Rep:
Thanks for the suggestions on vsftpd.conf.... I thought that was what I had done, but I've made several rounds of changes. By this point, I've tweaked the /etc/vsftpd.conf file so many different ways that I can't remember what it looked like at the start. I think I'll manually open the package's .tgz file and re-extract the original .conf to edit from a standard starting point. This time, I'll take better notes and modify just one setting at a time while I test. I'll report back in a couple of hours.
Will it really? I need the ftp server to stand ready to get and put files from a client that doesn't speak SSH. Are you saying that OpenSSH includes a plain-old non-secure ftp server in its package? I've only used it for the ssh terminal session feature and for a secure tunnel to enclose an rsync session.
Perhaps I might have been unclear above. The client side of this system is not a Linux box; it's just a dumb PC transferring a big ol' file via the only protocol it knows: FTP.
If you are interested in learning more about OpenSSH, I would suggest that you check out the link I provided. You can utilize SSH from a Windows system by using a program such as FileZilla or WinSCP.
Since this is a transfer between Windows and Linux, another option would have been Samba.
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Original Poster
Rep:
Close, but no cigar. I'm running Acronis True Image Backup. It will save to a samba share, but it also saves to an FTP server. Using the FTP server means that I don't have to expose my Windows domain to the nasty, naughty Internet.
Thanks for the details on getting ftp working, the one key item I didn't get from any of the post on ftp was that I have to log-in using sftp from my client.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.