proftpd problems
hello all. i am fairly new to linux and have just finished getting proftpd set up on my rh9 machine, and am trying to get anonymous going. I have defined a home directory for the user 'ftp' and set
'chmod 750 /home/ftp' (the anon. directory). My /etc/proftpd.conf has anonymous access like this: user: ftp group: ftp. My problem is that i get this: Connected to localhost (127.0.0.1). 220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [athome] Name (localhost:root): anonymous 331 Anonymous login ok, send your complete email address as your password. Password: 530-Unable to set anonymous privileges. 530 Login incorrect. Login failed. Remote system type is UNIX. Using binary mode to transfer files. Maybe the 'user' ftp is not in the 'group' ftp? i believe i can check this buy reading my passwd file, but it gives me a number rather than a name, an i cant decipher it hehe! As you can probably tell, i have much learning to do, and any help would be greatly apprieciated. -mindfestival |
can you post your proftpd config file?
|
# 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 ftp # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. #DefaultRoot ~ # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> # 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 ftp # 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 DisplayFirstChdir .message # Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> </Anonymous> (END) |
Try adding
Code:
AuthPAM Off |
hrrm no that didnt fix it im afraid, i am still getting the same message letter for letter, if its any conselation... i think it is to do with my user - group settings.
|
check the /etc/passwd file and make sure the home directory for the ftp user is set to /home/ftp, not something like /var/ftp
|
Ok yes it was incorrect. it reads
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin. What do i issue to change a users default directory? |
edit it manually or
Code:
usermod -d /home/ftp ftp |
All times are GMT -5. The time now is 02:33 PM. |