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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-18-2005, 08:00 AM
|
#1
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Rep:
|
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 11:00 AM.
|
|
|
01-18-2005, 08:38 AM
|
#2
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Original Poster
Rep:
|
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 08:41 AM.
|
|
|
01-18-2005, 09:08 AM
|
#3
|
Member
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47
Rep:
|
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.
|
|
|
01-18-2005, 09:53 AM
|
#4
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Original Poster
Rep:
|
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 10:18 AM.
|
|
|
01-18-2005, 11:12 AM
|
#5
|
Member
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47
Rep:
|
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.
|
|
|
01-18-2005, 12:05 PM
|
#6
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Original Poster
Rep:
|
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
|
|
|
01-19-2005, 03:02 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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 09:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|