store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 19, 2013 5:13 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Dec 20, 2010 11:01 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7418
Location: earth
The one in question belongs to the libcap-devel package


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Dec 20, 2010 1:10 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Thanks.

Next step is mod_ruid2 + APC.


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 5:00 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
Brucelee, do you think mod_ruid2 is ready for prime time? Anything special to consider when implementing?


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 5:20 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Well, I think I will use it in production soon. Just had not the time to go further.
But I'm running only one server in production and have a dev server for testing my stuff.
So I'm not sure if my test covers enough to give an advice to go live with it.
What I know is that it is pretty widely used since the first release with previous version called mod_ruid (without 2 ;) ).
Also have read of some hosting companies that are running it from the first release and the claim it is very solid.

So I will go live as soon as I have enough time.
Concerning the implementation just follow my previous posts. That's what I needed to do to get it running.


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 5:31 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
OK, thanks a bunch! Will try it out on my dev environment as well


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 9:57 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
OK, installed on the test server. Wordpress just got a whole lot easier to work with! Everything seems to be working ok.

1. Installed mod_ruid2 via yum.

2. Commented out all option in /etc/httpd/conf.d/ruid2.conf

3. Added this to /etc/httpd/conf/httpd.conf

Code:
LoadModule ruid2_module modules/mod_ruid2.so
<IfModule mod_ruid2.c>
  RMode config
  RUidGid apache apache
  RGroups apache psaserv
  RMinUidGid apache apache
</IfModule>


4. Created /var/www/vhosts/domain.tld/conf/vhost.conf
Quote:
<Directory /var/www/vhosts/domain.tld/httpdocs>
RMode config
RUidGid dinbackup psacln
RGroups psacln
</Directory>


5. Ran /usr/local/psa/admin/sbin/websrvmng

6. Restarted httpd

Then everything was up and running. Wordpress installed without a hickup and uploading plugins works perfectly.

edit: kernel 2.6.32.27-1.art.x86_64


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 10:17 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Great!
As I can see Scott updated the package. So it runs right away. Thanks Scott.

Quote:
%changelog
* Mon Dec 20 2010 Scott R. Shinn <scott@atomicrocketturtle.com> - 0.9.1-2
- Updated conf to run as apache
- Fixups for eaccelerator & php sessions directories.


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 10:56 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
There seems to be an updated mod_ruid version, 0.9.2. couldnät find any changelog though. Maybe we will get an updated package...


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 11:15 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
oh, yes maybe Scott will add that.
That's what I found about the latest change:
http://mod-ruid.svn.sourceforge.net/viewvc/mod-ruid?view=revision&revision=20


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 12:04 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7418
Location: earth
The funny part is it was updated a day after I put out -2 :P 0.9.2 should be up shortly


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Mon Jan 03, 2011 1:10 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
Thanks! Installed fine on my dev system.


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Wed Jan 05, 2011 3:52 pm 
Offline
Forum User
Forum User

Joined: Wed Jan 05, 2011 3:09 pm
Posts: 41
Bruce,

Did you manage to get the issue with "ModSecurity: Audit log: Failed to create subdirectories" sorted - testing this on a server with a heavy wordpress install and just get blank pages and this error in the logs.

Ive tried recompiling from source like you did as well - using the latest 0.9.3 version (yeseterday update) but same results.


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Thu Jan 06, 2011 4:41 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
how have you configured it?


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Thu Jan 06, 2011 6:23 am 
Offline
Forum User
Forum User

Joined: Wed Jan 05, 2011 3:09 pm
Posts: 41
Bruce - im using this as a test config for this heavy domain

<IfModule mod_ruid2.c>
RMode config
RDefaultUidGid apache apache
RUidGid apache apache
RGroups apache psaserv psacln
RMinUidGid apache apache
</IfModule>

<Directory /var/www/vhosts/DOMAIN/subdomains/test/httpdocs>
RUidGid USERNAME psacln
RGroups apache psacln psaserv
</Directory>


I have tried with various RGroups settings, - are you not getting this issue anymore ?


Top
 Profile  
 
 Post subject: Re: [atomic] mod_ruid2 0.9.1-1
Unread postPosted: Thu Jan 06, 2011 6:40 am 
Offline
New Forum User
New Forum User

Joined: Tue Jan 04, 2011 6:14 pm
Posts: 4
ikkk wrote:
<IfModule mod_ruid2.c>
RMode config
RDefaultUidGid apache apache
RUidGid apache apache
RGroups apache psaserv psacln
RMinUidGid apache apache
</IfModule>

Setting RMinUidGid to apache is not a good idea. RMinUidGid is in mod_ruid2 to prevent switching to system accounts in stat mode. On most linux systems these accounts u/gid are < 100 so the default is fine in most cases. Change this value only if you know exactly what you are doing...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group