Re: Error 530 won't go away
Hi steve_250,
First you should replace those lines :
Code:
# Set the user and group that the server normally runs at.
User root
Group root
by those lines :
Code:
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
Go in your /home/ftp directory and give us the result of the "ls -lg", and tell me what are the exact parmeters you used to login your ftp server (user, pass, port, address). Try to give us the maximum details, because the 530 error always come from a small mismatch.
Re: HOWTO : Create a FTP server with user access (proftpd)
Hello Frodon, thanks for the reply.
I have replaced the lines and ran the command, here are the results:
steve@ubuntu:/home/ftp$ ls -lg
total 20
drwxrwxrwx 84 root 12288 2006-01-01 17:01 download
drwxrwxrwx 2 root 4096 2005-12-31 15:48 upload
-rw-r--r-- 1 root 166 2005-09-05 13:17 welcome.msg
steve@ubuntu:/home/ftp$
Running Gftp with user steve pass xm3y9sjp port 21:
Looking up 192.168.2.33
Trying 192.168.2.33:21
Connected to 192.168.2.33:21
220 Ubuntu
USER steve
331 Password required for steve.
PASS xxxx
530 Login incorrect.
Disconnecting from site 192.168.2.33
Thanks for helping....
Steve...
Re: HOWTO : Create a FTP server with user access (proftpd)
There is another thing i didn't see before, in the "<Directory> /home/ftp/upload/>" field, modify it like that :
Code:
<Directory> /home/ftp/upload/>
Umask 022 022
AllowOverwrite on
<Limit READ RMD DELE>
DenyAll
</Limit>
<Limit STOR CWD MKD>
AllowAll
</Limit>
</Directory>
This will allow you to write in the upload directory.
Now for your login issue, try to login your gnome session with userftp in order to be sure that it's not a user creation problem. Check also that your home/ftp directory have 755 rights.
1 Attachment(s)
Re: HOWTO : Create a FTP server with user access (proftpd)
Ok, did all the above and entered pw for ftpuser again.
I gftp in with "steve" and go this far and now it sits there.
230 welcome !!!
SYST
215 UNIX Type: L8
TYPE I
200 Type set to I
PWD
257 "/" is current directory.
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
PASV
227 Entering Passive Mode (138,88,144,129,250,43).
The remote window just says "Receiving file names".
Kind'a stuck there.
Says the application is not responding when I try to close it after a 5 minute wait.
conf attached again.
Re: HOWTO : Create a FTP server with user access (proftpd)
I took a look at the permissions, all is set to 755 starting with "Home".
This is also what I see:
Location Owner Group
HOME Root Root
ftp ftp nogroup
Under ftp:
download Root Root
upload Root Root
I gave 777 to u/l as the first page you wrote said to do.
Re: HOWTO : Create a FTP server with user access (proftpd)
Do you attempt to login the ftp server with the same computer which run the server or with another one ?
The first thing to test is to login the ftp server with the same computer which run the ftp server then if it works the problem come from your router.
Re: HOWTO : Create a FTP server with user access (proftpd)
I tried it with the same machine, that's the log I sent ya.
Through another machine I had the same problem.
I also have tried to set the owner/group of all the directories to "steve".
(home/ftp, u/l & d/l)
In doing so, I now get the 530 error again.
What should the dir's be set to for owner/group?
Also chmod them to 774.
My login is steve and the machine will normaly be running under my name login.
Re: HOWTO : Create a FTP server with user access (proftpd)
The owner should be root (it is in my case) and 775 rights are needed for your /home/ftp directory.
Re: HOWTO : Create a FTP server with user access (proftpd)
Just to make sure I have it right, owner/group for ALL the mentioned directories are supposed to be root?
I'll do that and make sure it's all 775.
Ok, fixed that.
I commented out the passive mode and masquereding and it works locally now.
Any concern with commenting these out?
I try it through the internet, still hangs at receiving file names.
This is what Gftp reports:
USER steve
331 Password required for steve.
PASS xxxx
230 welcome !!!
SYST
215 UNIX Type: L8
TYPE I
200 Type set to I
PWD
257 "/" is current directory.
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
PASV
227 Entering Passive Mode (192,168,2,33,4,52).
LIST -aL
Disconnecting from site sjp.serveftp.net
Invalid response '
Re: HOWTO : Create a FTP server with user access (proftpd)
Quote:
Originally Posted by frodon
You can also define different access levels for each user, for exemple if you don't want a user to see or use a shared directory or if you just want to give him a read access. If some of you here are interrested, tell me and i will provide you some exemples.
YEs, I'd be very interested in this. Now that I finally got the FTP working (thanks to your advice), I'd like to setup different access levels for different users. If you could post a tutorial for that, that would be sweet.
Thanks!