Linux Security: Managing File Attributes and Permissions

Reset Permissions on /opt/myapp directory

To be able to allow access to the directory `/opt/myapp`, which you can provide specific permissions to the directory. This will allow to be read by all of the users other than the owner.

sudo chmod 755 /opt/myapp

This will also dothe same thing, but it is less secure.

sudo chmod 777 /opt/myapp

Permissions on Files and Folders Within /opt/myapp

The following will allow read and write (not execute) permissions to to all files and folders within the directory ‘/opt/myapp’ (including files within subfolders recrusively)

sudo chmod 666 -R /opt/myapp/*

Video

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

A WordPress.com Website.

Up ↑

%d bloggers like this: