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