You are not logged in.
Pages: 1
Topic closed
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
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
edit: this tread should be put to the networking forum
Last edited by robmaloy (2008-10-01 11:21:11)
☃ Snowman ☃
Offline
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
New thread at http://bbs.archlinux.org/viewtopic.php?id=56102
Offline
Pages: 1
Topic closed