chown -R youruser:youruser /thedirectory find /thedirectory -type f -exec chmod 0644 {} \; find /thedirectory -type d -exec chmod 0755 {} \;
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Fix permissions on a directory (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Reverse DNS from command line in shell osx unix linux
» Configure Ctrl-Alt-Del to op... in linux gnome
» How to Rip a DVD in Ubuntu L... in ubuntu linux dvd mplayer handbrake
» get rid of mac's ._ meta fil... in shell mac unix linux
» How to set a static IP in Ub... in ubuntu linux networking
» Bash script to export ssh pu... in ssh bash script linux
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails