You are not logged in.

#1 2008-09-30 20:12:22

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

[CLOSED] (Moved to Networking) 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. 

Thanks

Last edited by securitybreach (2008-10-01 12:36:41)


"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 11:09:13

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [CLOSED] (Moved to Networking) Proftpd cannot log in

are you forwarding port 20 & 21 or just 21?

does proftpd start properly? (check the logs, run "proftpd" without start script, look for verbosity options of conf and command-line)

comment/delete the <Anonymous> section to turn of anonymous logins tongue



edit: this tread should be put to the networking forum

Last edited by robmaloy (2008-10-01 11:21:11)


☃ Snowman ☃

Offline

#3 2008-10-01 12:35:51

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

Re: [CLOSED] (Moved to Networking) Proftpd cannot log in

I get no errors when running the command proftpd and I am only forwarding port 21. I will move this thread to networking.

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 12:41:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [CLOSED] (Moved to Networking) Proftpd cannot log in

Offline

Board footer

Powered by FluxBB