Page 1 of 1

FTP to user home directory

PostPosted: 29. October 2003 08:50
by Guest
Hi, currently when i ftp using a user's account, it goes to lampp's directory instead of the user's home directory.

how do i configure? Thanks!

PostPosted: 29. October 2003 09:47
by Kristian Marcroft
Hi,

you have to change this Line in the ProFTPd.conf in /opt/lampp/etc

I'm not aure but it should lookmlike this:

DefaultRoot /opt/lampp/htdocs

Please change this to:
DefaultRoot ~


Then all Users should connect to their "home" dir

So long
KriS

PostPosted: 29. October 2003 10:39
by Guest
Hi thanks for the reply, but that has already been set to ~

# 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 "ProFTPD"
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 nogroup

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

# only for the web servers content
DefaultRoot /opt/lampp/htdocs

# nobody gets the password "lampp"
# commented out by lampp security
#UserPassword nobody *********
UserPassword nobody ********

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off

<Global>
DefaultRoot ~
</Global>

PostPosted: 29. October 2003 15:55
by Kristian Marcroft
HI,

yes thats right,
but you have 2 DefaultRoots!!!


You have:
# only for the web servers content
DefaultRoot /opt/lampp/htdocs

and
<Global>
DefaultRoot ~
</Global>


Please delete the second one, and edit the first one.
Then restart Proftpd, and then it should work.
Works fine here...

So long
KriS

PostPosted: 12. April 2005 21:18
by snipes420
i've done this so i can add ftp support to users on my system.
but now it seems that "nobody" can not login any more.
it says "530 login incorrect"
even if i use the lampp script to change the password to a new one it still doesnt seem to accept any.
but i can login with users logins.
im using a fresh install of debian on a celeron 500mhz and xampp-linux-1.4.12.tar.gz.

thank you

PostPosted: 12. April 2005 21:22
by Kristian Marcroft
Hi,

this is quite easy.
Since the user nobody has no home on your System,
the user nobody can't log in.

It is quite good like this anyways.
You should create your own User with you specific HomeDir

So long
KriS

PostPosted: 13. April 2005 01:33
by snipes420
ok :)

that makes sense.

thanks you