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 02-08-2005, 04:15 AM   #1
mickeyren
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Rep: Reputation: 0
proftpd configuration / login in problem


hi,

i just really wanna have a simple ftp server that i can login to with the right directory, i couldn't seem to make it work, everytime i tried to login, i always get the username and password invalid. Where do i get / specify the username and password for the proftpd configuration?

right now, i tried to set up an "anonymouse" login type so i don't have to supply a password when it asks for the password. my conf is as follows:

-----------------------
ServerName "ProFTPD"
ServerAdmin "admin@localnet.com"
ServerType standalone
Port 21
Umask 022
User root
Group root

<Anonymous /home>
User ftp
Group ftp
UserAlias anonymous ftp
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
-----------------------

so i tried to login with:

ftp localhost
ftp
me@mail.com // i believe this one can be anything

and i get login/password incorrect ??

where exactly / how does it look like when specifying an email address on the proftpd configuration?

thanks very much for your reply.
 
Old 02-08-2005, 04:18 AM   #2
mickeyren
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
also one more thing.. with this very simple config file:

-------------
# set server parameters
ServerName "ProFTPD"
ServerAdmin "admin@localnet.com"
ServerType standalone
Port 21

# set default umask
Umask 022

# set the user and group for the server process
User nobody
Group nobody
--------------

and then i start to log in locally, ie, ftp localhost

where the hell do i get the username and password for it?

one more thing, i really don't understand the USER and GROUP directive, a detailed explanation for it would be very much appreciated.

thanks very much!

-David

Last edited by mickeyren; 02-08-2005 at 04:19 AM.
 
Old 02-08-2005, 04:42 AM   #3
mickeyren
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
somehow i think i might have made it worked, but i tried to connect to it remotely by, ie,

192.168.1.160

and I get a respose back "connection closed by remote host" ...

any idea? i still use the same config file,

thanks
 
Old 02-08-2005, 04:53 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,883

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Is the server running?
In your config file you have set it up as standalone, so you have to start it manually.
As for your question about the User/Group directive, you use it to specify a non-priviledged user to run the server for security reasons.
 
Old 02-18-2005, 04:46 PM   #5
rumcho
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
same problem with me.

I am running slackware 10.0 and same problem with default installation. it says the login is invalid. It says "Login incorrect.
Could not open host 100.100.1.212: username and/or password was not accepted for login.
I look into the server's log file at /var/log/proftpd.log and it says my shell is invalid. it says:
"USER xxxx (Login failed): Invalid shell: '/usr/bin/bash'"
but I know that bash is in the correct path. I do "which bash" and it returns "/usr/bin/bash". Then I open the file /etc/shells and I see that bash is listed as "/bin/bash" there which is incorrect and I add a new entry "/usr/bin/bash"
Try to log in again - no problem!
Greets,
Roumen Semov
 
Old 02-21-2005, 10:33 AM   #6
lozza1978
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Rep: Reputation: 15
Your not trying to login to your ftp server as root are you ? proftpd will not let you login as root unless you manually specify this in the config...


Whats the unmask022 option all about... help im lost
 
Old 03-01-2005, 12:47 PM   #7
rumcho
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Log in to ftp as root

If you really want to do this (not recommended for security reasons) - uncomment the line in /etc/ftpusers that reads "root".
Later,
Roumen Semov
 
  


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
proftpd. FTP login problem.. gplacek Linux - Networking 5 12-09-2004 07:29 AM
proftpd configuration problem adrianmak Linux - Software 1 10-13-2004 09:02 PM
Login problem with Proftpd phatboyz Linux - Software 0 08-30-2004 12:44 PM
proftpd configuration problem kafnir Linux - Networking 1 06-10-2004 11:41 PM
Proftpd configuration/users problem Slack 9.1 Akadin05 Linux - Networking 1 01-04-2004 10:21 PM


All times are GMT -5. The time now is 02:23 PM.

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