LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 01-18-2005, 09:00 AM   #1
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Rep: Reputation: 15
Ftp


I HAVE MOVED THIS POST:
I moved this post into the Formus > Linux - Networking category.
Please follow this link there:
http://www.linuxquestions.org/questi...hreadid=279309

Hello everybody. I've been trying these past few days to really start learning linux, so I've postponed posting this until I'd done all the research I possibly could.

I have a laptop running Windows XP, and a desktop running Slackware 10 Kernel 2.4.26.

My laptop currently runs Apache, PHP, and mySQL, and I'm trying to get these services off of it so that my development is on the laptop while my testing and serving is done off of the desktop. I got the wireless card in my desktop set up last night (a pain. a horrible pain), so I'm ready to accept connections to the desktop.

Now I want to set up an FTP access to my Apache htdocs directory, so that I can just upload the files I create on the laptop to the Linux desktop for testing.

I've been working with vsftpd for the past four hours, and I can't figure out how to make it do what I want. I've had it running under inetd and standalone, but I can't figure out the options. It works, but only for Anonymous FTP, and it allows all the users on the Earth into the interface. All I need is one user, with access to the htdocs directory.

Can anybody 1) understand my problem , 2) help me? Appreciate it,

James Kassemi

Last edited by jkassemi; 01-18-2005 at 12:00 PM.
 
Old 01-18-2005, 09:38 AM   #2
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Okay... well, this is what I've done now. I've disabled anonymous_enable, and I've enabled local_enable... but when I try to connect now I get this:

Status: Connecting to 192.168.0.2 ...
Status: Connected with 192.168.0.2. Waiting for welcome message...
Response: 220 Welcome to the Kassemi FTP. For authorized users only.
Command: USER god
Response: 331 Please specify the password.
Command: PASS ********
Response: 530 Login incorrect.

But I'm entering the correct password to my "god" user. Any input?

By the way: the user "god" is a user I have added to the linux box, not anybody specific to the vsftpd program... Does it use a separate file for users or something? ARGH!!!!!

Last edited by jkassemi; 01-18-2005 at 09:41 AM.
 
Old 01-18-2005, 10:08 AM   #3
noeffred
Member
 
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47

Rep: Reputation: 15
You might want to have a look into /var/log/.

Open a terminal, "su" to the root user and enter "tail -f /var/log/messages" and try to log in again. you might see something happening. If nothing happens check /var/log/vsftpd.log. Depends on the configuration.
vsftpd should log some infos into this file concerning the failed login and why it didn't let you login.
 
Old 01-18-2005, 10:53 AM   #4
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks for the help noeffred. I actually got pretty far before last checking the post. I now have the following in my vsftpd.conf file:

ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to the Kassemi FTP!
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
listen=YES
local_root=/SERVER
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
check_shell=NO
chmod_enable=YES
ls_recurse_enable=YES
write_enable=YES

And I've modified the vsftpd.chroot_list to include my one user, god.

When I log onto the ftp from my laptop, I get into the server fine and all, but the two files that I have listed in the /SERVER directory on the Linux box don't show up in the /SERVER directory listing...

I have no idea why these files aren't showing up. I even double checked on the Linux box whether they still existed, and they do:

check.html
check.php

So. Any ideas?

ps. When I access the /SERVER folder from my laptop through apache, I also see these two files listed exactly where they should be.
ps2. I know there may be some security risks. But I'll be the only user listed and allowed to access and I also just want it working before I set out on my secure everything mission.

Last edited by jkassemi; 01-18-2005 at 11:18 AM.
 
Old 01-18-2005, 12:12 PM   #5
noeffred
Member
 
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47

Rep: Reputation: 15
Well, I'm not sure, but I suspect some sort of problem with your access rights.

Maybe "god" doesn't have the proper rights to access these files.


You might also simplify the config a bit, toss
Code:
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
The directive "local_root=/SERVER" will put you automatically into the /SERVER directory after a succesful login.


BTW: if your're using FTP, I wouldn't worry about security. FTP transfers login information unencrypted...
If security is what you're after, you should check out "sftp" from the OpenSSH Package.
 
Old 01-18-2005, 01:05 PM   #6
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks noeffred. Appreciate the help. Seems after a combination of things I was able to get it working. Don't yet know exactly how, but permissions were part of it.

Take it easy,

James
 
Old 01-19-2005, 04:02 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

In the future, please feel free to report your post, and request a move. A moderator of the forum in which your post resides can then move it accordingly. Thank you.

Closed.
 
  


Closed Thread


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
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 06:14 PM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 06:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 03:07 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration