Proftpd Getting 550 Permission denied
I installed proftpd on a new CentOS 5 server, yet when FTPing in (I can log in fine), the files and directories do not list and I get a "550 filename: Permission denied" error each time I try to "put" or "get" a file (I can tell that the file is there, though, because if I try to access a non-existent file, I get a "No such file or directory error" instead of the permission denied error).
Any ideas? |
Can you share the contents of your /etc/proftpd.conf file (editing out any sensitive information, if any)? Also, who owns the the directory on your server where these files you're trying to access are located? If you could provide the output of running ls -l /path/to/your/data/directory then that would help as well. I'm guessing that if this is a default install then the /path/to/your/data/directory/ is your user account's home directory: /home/username.
|
Code:
# This is the ProFTPD configuration file Code:
|
Hmm, everything looks good.
The next thing I'd try is to see what my logs say (configuring it to do copious logging if necessary). |
Yeah, I have an identical server with the same setup and no problem. How to I configure proftpd logging? Right now the /var/log/proftpd directory is empty.
|
I figured out how to turn on logging. I tried it again, and the log contains this line:
Code:
::ffff:192.168.200.6 UNKNOWN ftpuser [16/Jun/2010:16:42:47 +0000] "RETR hi" 550 - |
By default, it logs to /var/log/wtmp (how much info I don't know).
If you want to create a custom log file, you can use a combination of the LogFormat and ExtendedLog directives: http://proftpd.org/docs/directives/l...LogFormat.html http://proftpd.org/docs/directives/l...tendedLog.html |
Ok, I stopped proftpd and started vsftpd - same problem. So it's not a proftpd issue. The user can log in just fine via SSH and can access files in the same directory with no issue.
Any ideas? |
I just tried disabling selinux and it worked. I do not want to leave it like that, though. Does this help at all?
|
Ok, I finally found something that helped. I ran this code in the user's root directory:
Code:
chcon -R -t public_content_t . |
Edit: Deleted
|
All times are GMT -5. The time now is 09:09 PM. |