LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-19-2004, 12:58 PM   #1
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
linux newbe proftpd


I am trying to set up a private proftpd server on my slackware box. I can log in to the Anonymous account using the basic proftpd.conf file that loads with Slackware 9.1 with .. ftp localhost u:ftp pblank). I want to set up private users for the machine.

I have read everyway about setup and nothing seems to work. I'm looking for specific info. For example If I do a
useradd <enter>
temp <enter>

passwd temp<enter>
1temp2 <enter>

Should I be able to login in with that user or is there a specific string I need to do? Is there another file I need to change or do I need to add temp to a group (which I would want to do in the future so that I can jail the group to a specific directory tree).

Can some one give a some help. Like I said I have read thru everything I can find and most is vague.

Last edited by notolerance; 01-19-2004 at 01:01 PM.
 
Old 01-19-2004, 06:02 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Private meaning what? If you add a user to your system, that user will be able to log into their home directory. If you want their home directory to be a certain partition like /home/public_ftp_area, then edit /etc/passwd for the user account to make the changes. Good Luck man, post back if you have more questions.
 
Old 01-19-2004, 09:44 PM   #3
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
chrisk5527,

I have users that can login to the box, but not thru ftp.

For example:
User: mainftp
Pass: ftpmain1

If I try to check the account thru ftp..

ftp localhost <enter>

(server tells me it running and asks for a username to log in)

If I give the user/pass above I get a connection failed.

If I use User: ftp and Pass: (blank) I get connection accepted.

I'm looking for a means to check configuration whether it is local or external from a winblow box/.
 
Old 01-20-2004, 10:15 PM   #4
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
User: ftp
Passswd:

This account is a default anonymous FTP account.

That account is an anonymous ftp account as stated in /etc/ftpusers.
If you want to change that remove or comment "ftp" from /etc/ftpusers.


My configuration files...


/etc/proftpd.conf
==============================

# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.

ServerName "ProFTPD Default Installation"
#ServerType standalone
ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 24
# 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 that the server normally runs at.
User nobody
Group nogroup

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

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

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 50

# 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>

# An upload directory that allows storing files but not retrieving
# or creating directories.
# <Directory incoming/*>
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>

</Anonymous>

==================================


/etc/ftpusers
===================================
#
# ftpusers This file describes the names of the users that may
# _*NOT*_ log into the system via the FTP server.
# This usually includes "root", "uucp", "news" and the
# like, because those users have too much power to be
# allowed to do "just" FTP...
#
#
# Version: @(#)/etc/ftpusers 3.00 02/25/2001 volkerdi
#
# Original Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#
# The entire line gets matched, so no comments or extra characters on
# lines containing a username.
#
# To enable anonymous FTP, remove the "ftp" user:
ftp
#root
#uucp
#news

# End of ftpusers.
=================================
 
Old 01-21-2004, 06:52 AM   #5
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
The only differances that I see in any file is that you comment out
#root
#uucp
#news

If I do this will it won't it give access to all users including root?
 
Old 01-21-2004, 07:02 AM   #6
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
notolerance, the users in /etc/ftpusers are the one's who you don't wish to let log on.

Therefor:

#root
#uucp
#news

Allows root, uucp and news to log in.
 
Old 01-21-2004, 10:56 AM   #7
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
OK, That's what I thought, I'll let you know if I get it running tonight. Thanks for all your help.
 
  


Reply



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
Linux Newbe with a Kernel Headache... tranquil_p Slackware 5 05-27-2005 10:14 PM
I let linux hijack half my hard drive... newbe mistake shotny Linux - Newbie 6 03-03-2005 04:35 AM
Linux Newbe, ISO Problems, and more! dmu Linux - Newbie 4 02-25-2005 01:19 PM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
Linux Newbe questions:: How to set up a Apache server (RH 8) Yo-DUH_87 Linux - Networking 4 03-05-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 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
Open Source Consulting | Domain Registration