URGENT -- Blocked apache from /usr/bin/perl

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I was going through the following article for securing DA.

http://help.directadmin.com/item.php?id=247

14) I ran this command after reading the description of it. However, I didn't read the bolded warning. I am running mod_ruid2 and I included the /usr/bin/perl command. Could someone please tell me how to unblock it??

commands run:
chgrp apache /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/bin/curl /usr/bin/python
chmod 705 /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/bin/curl /usr/bin/python
 
Please do the following to reverse it:
Code:
chown root:root /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/bin/curl /usr/bin/python 
chmod 755 /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/bin/curl /usr/bin/python
 
Thanks for the quick reply!

Do you recommend that I run the command without adding in the /usr/bin/perl??
 
Sorry, may you explain the question? /usr/bin/perl is already listed in my commands.
 
Sorry... I mean is it advisable to re-run the original command that I had but take out the /usr/bin/perl command?
 
No, it is not advisable to do that, because user httpd processes are not running as apache user anymore with mod_ruid2 :)
 
Back
Top