FTP to user home directory

Problems with the Linux version of XAMPP, questions, comments, and anything related.

FTP to user home directory

Postby Guest » 29. October 2003 08:50

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!
Guest
 

Postby Kristian Marcroft » 29. October 2003 09:47

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby Guest » 29. October 2003 10:39

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>
Guest
 

Postby Kristian Marcroft » 29. October 2003 15:55

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby snipes420 » 12. April 2005 21:18

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
snipes420
 
Posts: 11
Joined: 09. December 2004 04:12

Postby Kristian Marcroft » 12. April 2005 21:22

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby snipes420 » 13. April 2005 01:33

ok :)

that makes sense.

thanks you
snipes420
 
Posts: 11
Joined: 09. December 2004 04:12


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 67 guests