Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

proftpd doesn't let me login

Status
Not open for further replies.

tony84

Programmer
Jul 3, 2002
17
FR
Hi,

again i posted a thread with long talks, now
here is what i did:
there is a group called ftp, nobody on my computer so i added a user like this
shellconsole> adduser tony84 -g ftp -d /home/web -p pass -s /etc/ftponly
then i press enter no errors.
then i added a new user
shellconsole> adduser tony99 -g nobody -d /home/web1 -p pass2 -s /etc/ftponly

no errors appeared.
Now i did the following
#20.20.20.20 is my ip
shellconsole> ftp'20.20.20.20'
it asks for login so i type tony 84 and then it asks for password and i typed pass . and i get a 503 error messages.
then i did the EXACT same thing for tony99 and still i have the same error.

then i tried it again but username i put anonymous and it asks for the password to be an e-mail then i get the same 503 error passwd incorrect

That is how far i am.

any help is appreciated
Anthony
 
Do you crypt the password before you execute that command?
The password should be in encrypted form when you execute that command.
The easiest thing would be to first create the user without the -p switch and then use the passwd command to set the password. //Daniel
 
Hi,

the folder are created, i don't know how to encrypt the password and i realised that i lost ftpaccess by uninstalling wuftp

any help for password encryption is appreciated

And should i use ftpaccess?

Anthony
 
Use the passwd command to change the password. Do a "passwd --help" so you can execute the command as root and change the passwords for the users. //Daniel
 
To check to see if a password is encrypted, just look in the /etc/passwd file. If you can read the password you set, then its not encrypted. If its not, you would have to run the pwconv command to send the passwords to /etc/shadow in an encrypted format.

I don't think this is the problem, however. I ran the command on my system and it sent the passwords to /etc/shadow.

[root@linux01 /home]# useradd test -p pass
[root@linux01 /home]# grep test /etc/passwd
test:x:517:517::/home/test:/bin/bash

ChrisP If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Post your proftpd.conf file.

I forget to answer this on the last post, but ftpaccess isn't used with ProFTPd. I think thats a Wu-FTPd thing only.

ChrisP If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Hi,

now i did the following
[xx@xx]# adduser anthony -g nobody -d /home/web/anthony -p password
[xx@xx]# chown anthony.nobody /home/web/anthony
[xx@xx]# usermod /home/web/anthony anthony
######the password is encrypqted
then after i do
[xx@xx]#ftp '00.00.00.00' <--this is my ip(not real)
connected to 00.00.00.00 (00.00.00.00)
220 ProFTPD 1.2.5 Server (ProFTPD Default Installation) [localhost.localdomain]
Name (00.00.00.00:root): anthony331 Password required for anthony.
Password: ## i type my password 'password'###
530 Login incorrect.
login failed.
ftp>

and this is my proftpd.conf (copy and paste)
###########################################################
# 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
# &quot;nobody&quot; and &quot;ftp&quot; for normal operation and anon.

ServerName &quot;ProFTPD Default Installation&quot;
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 that the server normally runs at.
User nobody
Group group

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

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with &quot;anonymous&quot; as well as &quot;ftp&quot;
UserAlias anonymous ftp

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

Here is what i did now i don't see what i'm doing rong?
Regards,
Anthony
 
# Set the user and group that the server normally runs at.
User nobody
Group group

Is the user 'anthony' in the group 'group'?

ChrisP If someone's post was helpful to you, please click the box &quot;Click here to mark this post as a helpful or expert post&quot;.
 
Hi,

i still get an error curious huh?..
and i made the following change.

Anthony
 
Hi,

it finally worked, my passwords was Not encrypted,

thanx for all the help you gave me ChrisP
and the others.

Anthony
 
Your passwords weren't encrypted in /etc/passwd? How did you fix it? pwconv?
If someone's post was helpful to you, please click the box &quot;Click here to mark this post as a helpful or expert post&quot;.
 
Hi,

what is the difference between /etc/bash and /etc/ftponly
My password was not encrypted in /etc/shadow , so you could see what my real password was.
so i did like you told me
[xx@XX]# adduser tony84 -g group -d /home/web/ -s /etc/ftponly
[xx@xx]chown tony84 /home/web/
[xx@xx]passwd tony84
new password: test
new pass again: test

and that is it.

Anthony
 
I don't have /etc/bash or /etc/ftponly on my RH73 system. If they are in /etc/, then they are most likely text files. Open them up in a text editor.

This isn't a big deal, but I would use useradd instead of adduser. adduser is just a symlink to useradd because they are fazing adduser out. useradd works on all distro's.

If somebody resolved an issue for you, please click the link on the bottom right hand corner of their post to give them a &quot;star&quot; letting them know you helped them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top