View Single Post
  #2  
Old 7th October 2005, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by ProTrooper
Also, with the test user I created, PAM authentication fails. I added the file /etc/pam.d/proftpd but it did nothing.
On Fedora 4 you have to create the file /etc/pam.d/ftp with the following contents in it:

Code:
#%PAM-1.0
auth    required        pam_unix.so     nullok
account required        pam_unix.so
session required        pam_unix.so
Maybe this also applies to CentOS?

Quote:
Originally Posted by ProTrooper
When I log in as my test user (to web root which is 770), I created a folder and uploaded a test php page. The script uploaded fine but had permissions 544. I tried to change permissions and was denied.
You might have the following lines in /etc/proftpd.conf:
Code:
<Limit SITE_CHMOD>
 DenyAll
</Limit>
Comment them out!

Quote:
Originally Posted by ProTrooper
Finally, I was able to browse my entire ftp server. I am not quite sure how that happened, but I want to lock users into specific directories.
Make sure you have the line
Code:
DefaultRoot ~
in /etc/proftpd.conf.

And don't forget to restart proftpd after your changes!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote