LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-11-2013, 02:47 AM   #16
bengalman211
Member
 
Registered: Jul 2013
Location: Ohio, USA
Distribution: Linux
Posts: 34

Original Poster
Rep: Reputation: Disabled

Ok I set all permissions back to root as I believe they were before I would like to be sure though, is there a way I can set them to default configuration? -EDIT- Also when I changed permissions back to root "Sudo service apache2 start" still fails even when run as root

Last edited by bengalman211; 07-11-2013 at 08:14 AM.
 
Old 07-11-2013, 02:10 PM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,703
Blog Entries: 54

Rep: Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964
Quote:
Originally Posted by bengalman211 View Post
How would I go about setting all the files back to default owner/group?
If you don't "have the basic concepts down" (as you wrote in your OP) then maybe a script like this may help.


Should I switch everything to root owner/group?
Daemons like the web server start as root and then drop privileges to an unprivileged user account like "httpd", "www", etc, etc (just 'less /etc/passwd' to find out). /etc/apache2, /usr/sbin/apache2ctl and /var/log/apache2 may be owned by "root:root".


Quote:
Originally Posted by bengalman211 View Post
I changed permissions back to root "Sudo service apache2 start" still fails even when run as root
Do post the output like you did before because my ESP is WAY low today.
 
Old 07-11-2013, 02:50 PM   #18
bengalman211
Member
 
Registered: Jul 2013
Location: Ohio, USA
Distribution: Linux
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Daemons like the web server start as root and then drop privileges to an unprivileged user account like "httpd", "www", etc, etc (just 'less /etc/passwd' to find out). /etc/apache2, /usr/sbin/apache2ctl and /var/log/apache2 may be owned by "root:root".



Do post the output like you did before because my ESP is WAY low today.
output of $ sudo service apache2 start


* Starting web server apache2
/usr/sbin/apache2ctl: 139: /usr/sbin/apache2ctl: /etc/apache2: Permission denied
Action 'start' failed.
The Apache error log may have more information.
[fail]
 
Old 07-16-2013, 02:42 AM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,703
Blog Entries: 54

Rep: Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964
Run 'find /etc/apache2 /usr/sbin/apache2ctl /var/log/apache2 -ls' and show us the last 20 or so lines from your Apache error log?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
/etc/init.d/apache2 start ---> permission denied david008 Linux - Newbie 4 11-12-2008 12:13 PM
permission denied error mjalalynia Linux - Desktop 2 07-26-2008 02:28 AM
Permission Denied Error ckurowic Linux - Server 7 05-18-2007 04:33 AM
permission denied error endezeichen Linux - General 5 12-20-2003 07:59 PM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration