User Tools

Site Tools


blog:set_rights_of_files_in_public_html

This is an old revision of the document!


Set rights of files in public_html

#!/bin/bash

# setjog-here.sh

find . -type d -print0 | xargs -0 chmod 755
find . -type f -print0 | xargs -0 chmod 644
chmod 755 .
chmod u+x $0

Ref: http://ubuntuincident.wordpress.com/2010/11/21/setting-rights-for-public_html/

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   ____   ___    ____   ___    ____
  /  _/  / _ \  /  _/  / _ \  / __/
 _/ /   / ___/ _/ /   / , _/ / _/  
/___/  /_/    /___/  /_/|_| /_/
 
blog/set_rights_of_files_in_public_html.1299779746.txt.gz · Last modified: 2011-03-10 18:55 by brb