FTP Permissions / Home Directory errors
Quick question,
I have a website in: /home/httpd/vhosts/whatever.com/httpdocs (bad spot, works, not the issue) I made a directory under it called /members/membername. If I hit www.mysite.com/members/membername, I get the default index file, and that is happy. However when I FTP to my site, and login as the user, I get "Service not available, remote server has closed connection". The user is the owner of members/membername, and I chmodded it to 777 just to see if that'd help, but no dice. Is there another permission I need to set on this so that he can FTP into his home directory? btw: I set his home dir to /home/httpd/vhosts/whatever.com/httpdocs/members/membername. Thanks! |
What ftp server are you running? My last install of pure-ftp grabbed users from the system users. I guess you have to add them on the system.
|
Proftpd on RH9.
They're added in /etc/passwd, did an adduser, etc. |
|
Quote:
The server runs and connects fine, it's an account/permissions issue, not a NAT issue. :) |
Man, I have no idea. If it's not NAT, then maybe something to do with your config file. Post it here and maybe an answer will surface.
|
Here's my proftpd.conf, the include file that it references is blank.
Code:
-sh-2.05b$ cat /etc/proftpd.conf The reason for the long folder is so that people can upload things (pics, etc) and link to them, and /httpdocs is the only folder that apache can see. Thanks again. :) |
Hmmm.. well, here's mine. This works fine for me. Maybe there's something here you can use.
Code:
ServerName "FTP Server" |
Are your home directories /home/username, or are they somewhere else?
|
Yeah, each one is /home/username, and I have a bunch.
|
I'm trying to bury them underneath a single /home/username, like /home/username/stuff/morestuff/thefolderinquestion.
Not sure if that matters, really. :\ |
I think all you need is to have each user's home directory specified in /etc/passwd and have all the levels chmod 755 all the way to their home directory... so you'll want to have /home /home/username /home/username/stuff (etc, all the way down to their actual home dir) all of them chmod 755.
|
All times are GMT -5. The time now is 04:48 PM. |