Skip to content
tech :: stuff

tech :: stuff

Hosting and Security

Posted on Saturday 16 February 2013Wednesday 6 June 2018 by

Linux: Setting File Permissions On Folders and Directories

To set all the files and folders in a directory to 755 use chmod:
chmod -R 755 /foo/bar

To set the directories to 755 and set the file to 644 for this you can use the find command e.g.
to change all the directories to 755:
find /foo/bar -type d -exec chmod 755 {} \;
to change all the files to 644:
find /foo/bar -type f -exec chmod 644 {} \;

Share this:

  • Tweet
  • Share on Reddit (Opens in new window) Reddit

Like this:

Like Loading…

Related

CategoriesLinux TagsLinux

Comments are closed.

Post navigation

Previous PostPrevious Bluecoat: Authentication Descriptions
Next PostNext Windows: Win7 DVD Doesn’t Boot from USB DVD ROM Drive

Categories

  • CheckPoint (47)
  • Linux (31)
  • VMWare (16)
  • Misc (12)
  • Android (7)

Tags

  • Checkpoint (37)
  • Linux (30)
  • Gaia (17)
  • SPLAT (16)
  • secureplatform (15)

Year

  • 2023 (2)
  • 2017 (4)
  • 2016 (16)
  • 2015 (18)
  • 2014 (27)

Latest Posts

  • vSphere Client Download – Direct Links
  • iRule Event Order for HTTP Requests and TCP Connections
  • f5 Default Gateway Configuration
  • f5 Master Key for RMA and Migration
  • Skybox – Files Needed for Policy Analysis
  • Gaia: Invalid command:’scp -t’ Error
  • Teamviewer – package architecture (i386) does not match system (amd64)
  • Quick Reference: apt-get
  • Cannot Contact the Specified Host Error
  • Build A Complete Linux Media Server – Install Sonarr Series Download Manager
Privacy Policy Proudly powered by WordPress
%d