Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th October 2005, 15:18
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default ProFTPd on CentOS, many small problems

After many hours I finally got a server up and running with only Apache and ProFTPd. Because I am using CentOS I had to install ProFTPd "manually." Now I am testing and I am finding a few problems. Please note, this is not for installing ISPConfig.

First, after installing there was no startup script in /etc/init.d, I had to run it from /usr/local/sbin/proftpd. I tried copying a script from Fedora and I guess the libraries are different because I recieve this error: "Starting proftpd: execvp: No such file or directory"

Also, with the test user I created, PAM authentication fails. I added the file /etc/pam.d/proftpd but it did nothing.

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.

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.

Any help would be greatly appreciated.

Thanks,
James
Reply With Quote
Sponsored Links
  #2  
Old 7th October 2005, 15:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 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
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (17th December 2013)
  #3  
Old 7th October 2005, 15:45
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great. Thanks for the help. I am making the changes now. Could you tell me what PAM does? I have read about it but I am still not clear on what it does.
Reply With Quote
  #4  
Old 7th October 2005, 16:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

http://www.kernel.org/pub/linux/libs/pam/whatispam.html
__________________
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with groups/grpconv linuxfast General 28 21st April 2008 09:35
Speed up Proftpd login for all users linuxfast Tips/Tricks/Mods 12 13th February 2007 19:55
proftpd problems Ovidiu Installation/Configuration 5 21st September 2005 10:47
ISPConfig ProFTPD changes? ProTrooper Installation/Configuration 3 9th September 2005 18:13
ProFTPD Permission problems phamels Installation/Configuration 6 28th August 2005 21:00


All times are GMT +2. The time now is 16:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.