LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-06-2004, 09:43 PM   #1
WNxSquee
LQ Newbie
 
Registered: Aug 2003
Location: PA
Posts: 29

Rep: Reputation: 15
Adding a new user to ProFTPD?


Can anyone give me instructions on how to add a new user to my FTP server running ProFTPD. I already have it running and can access with my logon for linux and the anonymous but everytime I try to log on with the new user I made it tells me bad password. So if anyone could please give me instructions (the more detailed the better) on how to add a new user? I might just be doing something wrong. Tommorow I will post the logon messages that I am having and my config files. Thank you for your help in advance.
 
Old 01-06-2004, 09:46 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
double post = no no
http://www.linuxquestions.org/questi...hreadid=132093
 
Old 01-07-2004, 03:13 PM   #3
WNxSquee
LQ Newbie
 
Registered: Aug 2003
Location: PA
Posts: 29

Original Poster
Rep: Reputation: 15
here is my config info

Sry bout that could not find the other one. Things move so fast on this forum and no one answered sooo. Anyway here is my config info. Can someone please tell me the iinstructions for adding a normal user to ProFTPD?


/etc/ftpusers
Code:
root 
uucp 
news
/etc/passwd
Code:
root:x:0:0:root:/root:/bin/bash 
bin:x:1:1:bin:/bin:/bin/sh 
daemon:x:2:2:daemon:/sbin:/bin/sh 
adm:x:3:4:adm:/var/adm:/bin/sh 
lp:x:4:7:lp:/var/spool/lpd:/bin/sh 
sync:x:5:0:sync:/sbin:/bin/sync 
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown 
halt:x:7:0:halt:/sbin:/sbin/halt 
mail:x:8:12:mail:/var/spool/mail:/bin/sh 
news:x:9:13:news:/var/spool/news:/bin/sh 
uucp:x:10:14:uucp:/var/spool/uucp:/bin/sh 
operator:x:11:0:operator:/var:/bin/sh 
games:x:12:100:games:/usr/games:/bin/sh 
nobody:x:65534:65534:Nobody:/:/bin/sh 
rpm:x:13:101:system user for rpm:/var/lib/rpm:/bin/false 
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin 
rpc:x:70:70:system user for portmap:/:/bin/false 
xfs:x:71:71:system user for XFree86:/etc/X11/fs:/bin/false 
apache:x:72:72:system user for apache-conf:/var/www:/bin/sh 
postfix:x:73:73:system user for postfix:/var/spool/postfix:/bin/false 
named:x:74:74:system user for bind:/var/named:/bin/false 
rpcuser:x:75:75:system user for nfs-utils:/var/lib/nfs:/bin/false 
sshd:x:76:76:system user for openssh:/var/empty:/bin/true 
gdm:x:77:77:system user for gdm:/var/lib/gdm:/bin/false 
ftp:x:78:78:system user for proftpd:/var/ftp:/bin/rbash 
postgres:x:79:79:system user for postgresql:/var/lib/pgsql:/bin/bash 
wnxsquee:x:501:501:Bill Dolan:/home/wnxsquee:/bin/bash 
ftpshares:x:5554:78::/home/ftp-share:/bin/rbash

/etc/proftpd.conf
Code:
# 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                      "ProFTPD ftp share Installation" 
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                    15 
 
# Set the user and group under which the server will run. 
User                            wnxsquee 
Group                           ftp 
 
# 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. 
# A basic anonymous configuration, no upload directories. 
<Anonymous ~ftp> 
  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			10 
 
  # Don't make it require a valid password or shell. 
  RequireValidShell		off 
  AnonRequirePassword		off 
 
  # 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> 
 
#Include			/etc/proftpd-anonymous.conf 
 
<drakwizard> 
<Global> 
  <Limit LOGIN> 
    Order allow,deny 
    Allow from all 
    Deny from all 
  </Limit> 
</Global> 
</drakwizard>

If you want to see any other file please post here and I will get it on ASAP. Like I said I just need instructions on how to add a user to ProFTPD. And please tell me if I have something wrong in to config files maybee that is why it is not working.

Last edited by WNxSquee; 01-07-2004 at 03:20 PM.
 
Old 01-07-2004, 03:25 PM   #4
WNxSquee
LQ Newbie
 
Registered: Aug 2003
Location: PA
Posts: 29

Original Poster
Rep: Reputation: 15
Here is the error I get when loggin in. (Just did it on seperate computer on network, does the same thing if I try on the host computer.)

Code:
~ Connecting...
~ Connected to 192.168.0.183, waiting for response...
< 220 ProFTPD 1.2.7 Server (ProFTPD ftp share Installation) [localhost]
> USER ftpshare
< 331 Password required for ftpshare.
> PASS *****
< 530 Login incorrect.
!  Invalid username or password for 192.168.0.183
~ Could not login to 192.168.0.183
~ Disconnected
~ Connecting...
~ Connected to 192.168.0.183, waiting for response...
< 220 ProFTPD 1.2.7 Server (ProFTPD ftp share Installation) [localhost]
> USER wnxsquee
< 331 Password required for wnxsquee.
> PASS *****
< 230 User wnxsquee logged in.
> REST 1
< 350 Restarting at 1. Send STORE or RETRIEVE to initiate transfer
> REST 0
< 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
> SYST
< 215 UNIX Type: L8
> PWD
< 257 "/home/wnxsquee" is current directory.
~ Login completed.
> PORT 192,168,0,103,18,172
< 200 PORT command successful
> TYPE A
< 200 Type set to A.
> LIST
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
~ Disconnected
~ Connecting...
~ Connected to 192.168.0.183, waiting for response...
< 220 ProFTPD 1.2.7 Server (ProFTPD ftp share Installation) [localhost]
> USER anonymous
< 331 Anonymous login ok, send your complete email address as your password.
> PASS *****
< 230 Anonymous access granted, restrictions apply.
> REST 1
< 350 Restarting at 1. Send STORE or RETRIEVE to initiate transfer
> REST 0
< 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
> SYST
< 215 UNIX Type: L8
> PWD
< 257 "/" is current directory.
~ Login completed.
> PORT 192,168,0,103,18,174
< 200 PORT command successful
> TYPE A
< 200 Type set to A.
> LIST
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
~ Disconnected

Any Ideas?

Last edited by WNxSquee; 01-07-2004 at 03:27 PM.
 
Old 01-08-2004, 07:01 AM   #5
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Rep: Reputation: 15
Re: here is my config info

ftpshares:x:5554:78::/home/ftp-share:/bin/rbash

The user is created as ftpshareS
(and it is /bin/bash, not /bin/rbash)

and you are trying to log as ftpshare (no final s)

How did you create the user?
You should create it with
adduser (user)
passwd (user)

Also I don't like this in your config:

Quote:

<drakwizard>
<Global>
<Limit LOGIN>
Order allow,deny
Allow from all
Deny from all

</Limit>
</Global>
</drakwizard>
Quite confusing, isn't it?
 
  


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
Adding users in ProftpD Darkfin Linux - General 3 12-23-2009 08:00 AM
Adding a web account for Proftpd javamdk Linux - Software 2 07-30-2005 11:27 AM
ProFtpd and adding virtual users gbj Linux - Networking 0 03-17-2005 01:37 AM
proftpd - adding module in... Black_iCE_mdk Mandriva 9 06-08-2004 02:38 AM
Pleasehelp with proftpd.conf - trying to config user to write files as other user. philg Linux - Software 1 06-21-2003 12:13 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration