LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 03-28-2007, 06:14 PM   #1
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Rep: Reputation: 15
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:

530 Login incorrect.
Login failed.
ftp>

What am I missing, here?
 
Old 03-28-2007, 06:30 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
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.
 
Old 03-28-2007, 06:46 PM   #3
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
I didn't get that; do you have a user called luser in your /ect/passwd?
try:
Code:
cat /etc/passwd | grep luser
 
Old 03-28-2007, 06:50 PM   #4
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
@cgjones: but at least vsftpd will enable secure file transfer easier than SSH-based solution.
 
Old 03-28-2007, 06:57 PM   #5
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 77
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.
 
Old 03-28-2007, 06:58 PM   #6
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
Quote:
Originally Posted by elsheikhmh
@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.
 
Old 03-28-2007, 07:09 PM   #7
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
@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
 
Old 03-29-2007, 10:05 AM   #8
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
Old 03-29-2007, 10:09 AM   #9
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
Old 03-29-2007, 10:16 AM   #10
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
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.

Can you tell I'm a ?

 
Old 03-29-2007, 01:17 PM   #11
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
It works now!

OK, it works now. Here's what I needed:

The FTP user required a valid home directory and a valid shell in /etc/passwd
The vsftpd.conf file needed minimal edits from the default:
  • anonymous-enable=NO
  • write-enable=YES
Now I just need to ensure nobody can login as root or other undesirable users, and I'll be done.
 
Old 03-29-2007, 01:37 PM   #12
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
Quote:
Originally Posted by petcherd
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.
 
Old 03-30-2007, 12:09 AM   #13
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
Old 01-28-2010, 05:49 PM   #14
440Music
LQ Newbie
 
Registered: Jan 2009
Location: Chicago, IL USA
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
Cool

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.

Tom
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp.conf slackware -- local user login Pozican Linux - Software 3 05-08-2005 11:03 AM
Which distro fits with me hylke Linux - Distributions 5 12-11-2004 05:55 PM
Which Distribution really fits my wants Soul Linux - Distributions 2 08-11-2004 05:42 AM
FTP is having some fits. Brother Michael Debian 1 07-11-2004 06:04 AM
VSFTP is giving me fits! Swatson Linux - Newbie 2 07-04-2004 10:32 AM


All times are GMT -5. The time now is 06:39 AM.

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