DebugQ - De:Bug:Q

Go Back   DebugQ - De:Bug:Q > DebugQ > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Thread Tools Display Modes
  #1  
Unread 04-09-2014, 08:13 AM
Debugger Debugger is offline
Administrator
 
Join Date: Oct 2007
Posts: 895
Default Change incorrect ownership

Change incorrect ownership:


Code:
find /home/user/public_html/ -user nobody

To automatically correct ownership:


Code:
find /home/user/public_html/ -user nobody -exec chown user:user {} \;

You'll also want to make sure directories are 755 when using SuPHP. Similar code to fix this:

Code:
find /home/user/public_html/ -type d -perm 777 -exec chmod 0755 {} \;


   

Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT. The time now is 03:14 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
DebugQ - Debug Quote - De:Bug:Q