LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 07-04-2003, 02:37 PM   #16
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Unhappy


Tried that...still getting the 421 error .

-Keerthan
 
Old 07-04-2003, 02:47 PM   #17
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
When i do a "service proftpd restart"...the shutting down part fails...but it starts up fine....i'm not sure if that is because it is not the main daemon...However, vsftpd seems to be shutting down and starting up fine...here's my passive mode options in the .conf file...not sure if these are tampering with anything -->

pasv_enable=YES
pasv_min_port=65000
pasv_max_port=65534
pasv_address=100.100.100.100

The thing is, when i get the 421 error...it first says that it is Connected..and then says Service unavailable....so not sure what the problem is
 
Old 07-04-2003, 02:50 PM   #18
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
One more thing, did a nstat and ports 21,22, and 23 are open so the problem doesn't seem to be anything dealing w/ my router.
 
Old 07-04-2003, 02:54 PM   #19
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Ksoma can you post me the things you made to setup your servers, I will try to search where you have made a mistake, ok?
 
Old 07-04-2003, 03:19 PM   #20
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Ok..sure thing nautilus. I'm assuming you mean the .conf files as far as what I did to attempt to set this up.....so I'll post those up. If you need anything else, or if misunderstood what you were asking, let me know. I really appreciate it.

I'm going to go ahead and post everything up ..even the commented info....just in case you see something that I commented out that I wasn't supposed to. Both these files contain no errors anymore(that i know of atleast).

Here's the vsftpd.conf file(it is located in my /etc/vsftpd directory) :

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are very paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
#
# Allow anonymous FTP?
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022

pasv_enable=YES
pasv_min_port=65000
pasv_max_port=65534
pasv_address=100.100.100.100
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
chown_uploads=YES
chown_username=keerthan
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Keerthan's ftp service
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
listen_address=192.168.0.101
listen_port=21
tcp_wrappers=YES

[Here's the proftpd.conf file(located in /etc) :

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
#
#and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "Keerthan's FTP Server"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User keerthan
Group users
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~keerthan>
User keerthan
Group users

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias Keerthan keerthan
# Limit the maximum number of anonymous logins
MaxClients 10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
#
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>

Last edited by ksoma; 07-04-2003 at 03:22 PM.
 
Old 07-04-2003, 03:33 PM   #21
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
I just used sftp...and was able to connect to my comp....isn't this tied in with ssh somehow? I'm not sure exactly the details of it..but I couldn't find a package for it so I was wondering where it is on here. I did a whereis ...only found a .gz file and an entry in the /usr/bin directory.
 
Old 07-05-2003, 06:40 AM   #22
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Ksoma, looks here I suggest you to make such changes with proftpd.
1. Login as root
1.1 Create user 'ftp' (if it is not already created)
2. Create group 'ftp' (if it is not already created)
3. Now remove 'ftp' from /etc/ftpusers (I left only 'root' there)
4. [color = red] Download normal ProFTPd binaries!!!!!!![/color] Install it.
4.1 put this config file:
Code:
ServerName			"-=[Keerthan's Underground FTP Server]=-"
ServerType			standalone
DefaultServer			on

# Port 21 is the standard FTP port.
Port				21
Umask				022

MaxInstances			30
 
User				ftp
Group				ftp
SystemLog			/var/log/proftpd.log
TransferLog			/var/log/transfer.log
DeferWelcome off 
#===========
#TimeoutIdle	600
TimeoutLogin	30	
#===========
<Anonymous /home/ftp>
  RequireValidShell		off
  User				ftp
  Group				ftp
  UserAlias			anonymous ftp

  MaxClients			5
  DisplayLogin			"welcome.msg"
  AccessGrantMsg 	"Guest access granted for %u."	


 #upload
  <Directory upload/>
  #DisplayFirstChdir		/underground/ftp/welcome.msg
    <Limit STOR CWD XCWD PUT>
        AllowAll
     </Limit>

     <Limit DELE MKD RMD XMKD XRMD>
        DenyAll
     </Limit>
  </Directory>
</Anonymous>
5. 'proftpd'

that should work
 
Old 07-05-2003, 06:40 AM   #23
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
don't forget to shutdown you firewall rule and other FTP servers.
 
Old 07-05-2003, 09:31 PM   #24
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
I shut down vsftpd and tried it....now I'm getting a connection refused..where are the firewall options?

Last edited by ksoma; 07-05-2003 at 09:38 PM.
 
Old 07-05-2003, 09:39 PM   #25
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Hahaha....i was typing the wrong IP this last time...that is why it was getting a connection refused....but shutting down vsftpd solved the problem Thanks so much nautilus I guess both cant be running at the same time.

-Keerthan
 
Old 07-05-2003, 09:45 PM   #26
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Actually, the error i get now is a login failure....

Last edited by ksoma; 07-05-2003 at 09:49 PM.
 
Old 07-06-2003, 05:15 AM   #27
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
so now Proftpd works?
 
Old 07-06-2003, 08:21 AM   #28
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Well it connects now....but it gives me a 530 login failure...asks me for my password(however, right before that it says to use my email address as my password). I type the password for that user and it fails...does that for any user i try.

Last edited by ksoma; 07-06-2003 at 08:29 AM.
 
Old 07-06-2003, 08:36 AM   #29
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Thumbs up

Ok, never mind ...forgot to remove my name in the ftpusers file...so proftpd is up and working now...thanks for the suggestions and help..really appreciate it nautilus

-Keerthan
 
  


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
need help with errors menthegnome Linux - Newbie 6 11-16-2005 04:26 PM
QT errors filburt1 Linux - Software 3 03-17-2004 02:16 PM
Errors during filesystem check with one kernel while no errors with other kernel Potentials Linux - General 11 12-30-2003 05:24 AM
QMAIL errors errors.. YourForum Linux - Software 0 11-27-2003 01:30 PM
2 many errors wesley Linux - Newbie 1 08-03-2001 12:42 AM


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