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 |
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!!!!! |
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. |
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. |
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 BTW: if your're using FTP, I wouldn't worry about security. FTP transfers login information unencrypted... :tisk: If security is what you're after, you should check out "sftp" from the OpenSSH Package. |
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 |
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. |
All times are GMT -5. The time now is 07:56 AM. |