You are not logged in.

#1 2008-10-01 12:37:55

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Proftpd Cannot Log In

I have setup proftpd on Archlinux, configured my router, and no-ip. Now I can access my server but I cannot login to it. I have tried my username, anonymous, etc with not avail. Here is my /etc/proftpd.conf:

# 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            "DarkStar"
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 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                nobody
Group                nobody

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite        on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
PersistentPasswd off

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

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

  # 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

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin            welcome.msg
  DisplayChdir            .message

  # Limit WRITE everywhere in the anonymous chroot
  #<Limit WRITE>
   # DenyAll
  #</Limit>
#</Anonymous>

Here is my /etc/passwd:

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
comhack:x:1000:100:,,,:/home/comhack:/bin/bash
dbus:x:81:81:System message bus:/:/bin/false
hal:x:82:82:HAL daemon:/:/bin/false
mpd:x:45:45::/var/lib/mpd:/bin/true
avahi:x:84:84:Avahi daemon:/:/bin/false
nx:x:1001:109::/opt/NX/home/nx:/opt/NX/bin/nxserver

And here is my /etc/hosts.allow:

#
# /etc/hosts.allow
#
sshd: ALL
mpd:ALL
ftpd: ALL
# End of file

When I try to access the page I get the login prompt but cannot login. Does anyone know how I can set my server to only allow my username and password from the server machine (no anonymous) ? I would basically like to have read/write access to my main machine's /home directory via ftp. Also, I tried running the command proftpd by itself to see if it gave me any errors and it does not. So it seems everything is set up correctly except for the login credentials. Any ideals?

Thanks

Last edited by securitybreach (2008-10-01 13:39:40)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#2 2008-10-01 20:05:38

remote
Member
Registered: 2007-12-28
Posts: 44

Re: Proftpd Cannot Log In

Perhaps remove # from #DefaultRoot ~

Offline

#3 2008-10-01 20:09:25

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Proftpd Cannot Log In

Thanks


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#4 2008-10-01 20:42:56

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Proftpd Cannot Log In

Ok I uncommented #DefaultRoot in /etc/proftpd.conf and now I can access my ftp but it doesnt ask for a password/username. My other problem is I am not for sure where this directory is located on my machine. Any suggestions?

Thanks

Last edited by securitybreach (2008-10-01 20:51:34)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#5 2008-10-01 22:47:54

remote
Member
Registered: 2007-12-28
Posts: 44

Re: Proftpd Cannot Log In

Answers are in the conf:
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

Yet you could always add/send an oddfilename and then updatedb and locate oddfilename
If you need any more help, see if I'm around at http://zaxter.info:8080/webchat/

Take care.

Offline

#6 2008-10-01 23:53:18

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: Proftpd Cannot Log In

Sorry I restarted my router and then I could not connect to zaxter room.  Thanks for the help though


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

Board footer

Powered by FluxBB