LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2002, 04:59 AM   #1
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Unhappy Problems with WU-FTPd


I installed WU-FTPd and configured it.
But when I try to FTP heres what I get:
Quote:
connecting to <my ip addy>:21
Connected to <my ip addy> port 21
500 <my hostname> FTP server shut down -- please try again later.
! unknown open message "<my hostname> FTP server shut down -- please try again later." 500
How do I fix this?
 
Old 08-06-2002, 07:03 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
sounds like a shutdown file exists, you need to remove it.

rm <path to shutdown file>

Check your ftpaccess file for a reference to the shutdown file to get the path.
 
Old 08-06-2002, 11:13 PM   #3
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Original Poster
Rep: Reputation: 30
I got my ftp server to start
How do I set the / directory when people login to FTP to somewhere else?
 
Old 08-07-2002, 05:06 AM   #4
lopezjo49
Member
 
Registered: Jun 2002
Location: NJ
Distribution: Mainly Kubuntu 8.10
Posts: 44

Rep: Reputation: 15
look into chroot
 
Old 08-07-2002, 05:07 AM   #5
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well it all depends on your setup...

Generally speaking thougb users will login and be placed in their home dir.

Users by default are able to traverse the entire filesystem, if you want all users to be jailed to their homedir you can set this line in the ftpaccess file

guestgroup *

Anonymous users use the real system account 'ftp' to gain access. anon users _ARE_ chroot jailed to their homedir. you can also do trendy stuff like chdir them to a location within their chroot'd environment.

try reading up on it in the ftpaccess manpage. fell free to ask more questions too though!!
 
Old 08-07-2002, 05:20 AM   #6
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
I should also menntion that if you _do_ set the guestgroup globally you can set your ftp admin user or group to NOT be made a guest user, just add one of these to the ftpaccess file...

realuser <ftp administrator>
--OR--

realgroup <admin group>
 
Old 08-07-2002, 06:19 AM   #7
BlackDogg
Member
 
Registered: Jul 2002
Location: Los Angeles
Distribution: RedHat 7.3, SuSe 8.0
Posts: 71

Rep: Reputation: 15
Oh yeah, I was trying to set up an ftp server, but didn't know where to start since i'm a big time newb. I'm looking to serve with defined user accounts and not annoymous accts. Do I use wu-ftpd? How would go about setting it up? Is it fairly hard? I read a lil sumthin about this, like editing some files...I'm not sure though. Also is this gui based, if not, how would I be tracking peeps down in real time, like monitoring there actions while on my server? Is this console based? Is there an alternative for a GUI based adminstration setup of an ftp server? I'm so sorry for asking too many questions, but I'm a sys admin supporting winblows, and I'd like to convert over to linux, so I'd like to know the ins and outs of linux equivlents. Much input, and answers appreciated. Since I'm a newb I'm not sure where to exactly start.
 
Old 08-07-2002, 09:25 AM   #8
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Do I use wu-ftpd?
You can.

How would go about setting it up?
www.wu-ftpd.org

Is it fairly hard?
No.

I read a lil sumthin about this, like editing some files...I'm not sure though.
You modify /etc/ftpaccess to control the server.

Also is this gui based, if not, how would I be tracking peeps down in real time, like monitoring there actions while on my server?
There is no need for a gui. you set it up it works. though you can log everything that is done on the server if your paranoid.

Is there an alternative for a GUI based adminstration setup of an ftp server?
Maybe. Actually there is a gui config tool for ftpd, it comes with the suse distro (probably most of them) but you should be able to get it from freshmeat.net

I'm so sorry for asking too many questions,
Well, yes, we are being a bit lazy aren't we...

but I'm a sys admin supporting winblows,
I can forgive you

and I'd like to convert over to linux,
Good idea.

so I'd like to know the ins and outs of linux equivlents. Much input, and answers appreciated. Since I'm a newb I'm not sure where to exactly start.
This is all you need to know. Linux works. (being a ms os admin I'm sure you know what I mean)

start by buying a distro, pref one with good manuals. these will provide enough guidence to get you going. I use SuSE and they chop down lots of trees to make their manuals
 
Old 08-07-2002, 09:49 PM   #9
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Original Poster
Rep: Reputation: 30
I already setup /etc/ftpaccess

BUT

It has:

anonymous-root /home/httpd/extremeserv-linux.com/wu-ftpd/ftproot
guest-root /home/httpd/extremeserv-linux.com/wu-ftpd/ftproot

But when I create a new dir in /home/httpd/extremeserv-linux.com/wu-ftpd/ftproot it dun show up in ftp
 
Old 08-08-2002, 04:27 AM   #10
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well then, the chroot is going somewhere else... you must start ftpd with the -a option in order to activate the ftpaccess file. there is no need for other options. Are you using -a to start the ftpd? do you use inetd to start it? can you post your entire ftpaccess file here please (remove anything that names your site though)
 
Old 08-10-2002, 10:59 PM   #11
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Original Poster
Rep: Reputation: 30
Code:
[root@alchemy html]# cat /etc/ftpaccess
class   all     anonymous       *

limit   all     50      Any     /home/httpd/yahoo.com/wu-ftpd/error.log

readme  README*    login
readme  README*    cwd=*

message /welcome.msg            login
message .message                cwd=*

compress        yes             all
tar             yes             all

log commands real
log transfers anonymous,real inbound,outbound

shutdown /etc/shutmsg

email user@hostname
chmod   no      anonymous
private no
delete  no      anonymous
rename  no      anonymous
overwrite       no      anonymous
umask   no      anonymous
anonymous-root  /home/httpd/yahoo.com/wu-ftpd/ftproot
guest-root      /home/httpd/yahoo.com/wu-ftpd/ftproot
autogroup       nobody
[root@alchemy html]#
Code:
[root@alchemy html]# /usr/sbin/ftprestart -a
/usr/sbin/ftprestart: invalid option -- a
usage: /usr/sbin/ftprestart [-V]
[root@alchemy html]#
 
Old 08-10-2002, 11:00 PM   #12
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Original Poster
Rep: Reputation: 30
Also I do not use inetd as I compiled it myself, not a RPM
 
Old 08-11-2002, 11:12 AM   #13
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well, without knowing how the server is started on your box, I would simply suggest to you that the easiest and most efficient way of getting your anon users to choot to /home/httpd/yahoo.com/wu-ftpd/ftproot is to edit the /etc/passwd file.

find the entry for the user FTP and change the home dir entry from whatever it is, to /home/httpd/yahoo.com/wu-ftpd/ftproot

Just a note, compileing the server your self does not mean that you cannot start it via inetd. I find that using inetd is the easy way of running servers, but anyway... you want to find how your ftp server is starting. the server name is going to be in.ftpd probably (though it could be wu.ftpd if its older than 2.6.0 I think) . this is what needs to be started with the -a option.
 
Old 08-11-2002, 11:21 AM   #14
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
You ftpaccess file looks OK! but I would ditch these entries...
anonymous-root /home/httpd/yahoo.com/wu-ftpd/ftproot
guest-root /home/httpd/yahoo.com/wu-ftpd/ftproot

and this one is not setup and you definately dont need it yet! get rid of it until you find a use for it!
autogroup nobody
 
Old 08-14-2002, 05:50 AM   #15
baza
LQ Newbie
 
Registered: Jun 2002
Posts: 3

Rep: Reputation: 0
Hi All

I have installed Redhat 7.2 on a machine and installed ftp .
But when i try to ftp locally or remotely it just gives me connection refused .

I have enabled ftp and restarted the xinetd service again as well but no luck.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PASV problems wu-ftpd twantrd Linux - General 3 08-18-2004 04:15 PM
wu-ftpd problems reachtoravi Linux - Networking 0 08-20-2003 12:16 PM
wu-ftpd problems mego22 Linux - Software 0 07-28-2003 03:31 PM
Pure-FTPD Problems MRK Linux - Software 2 06-30-2003 12:49 PM
wu-ftpd problems cosmoh2o Linux - Networking 4 02-06-2003 02:54 PM


All times are GMT -5. The time now is 11:01 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