Diving permision to a new folder digital ocean

To grant diving permission to a new folder in DigitalOcean, you'll need to use the chmod command. Here's a step-by-step guide:

Prerequisites:

  1. You have a DigitalOcean droplet (virtual private server) set up.
  2. You have SSH access to your droplet.
  3. You have created a new folder in your droplet's file system.

Granting diving permission:

  1. Open a terminal and connect to your DigitalOcean droplet using SSH.
  2. Navigate to the directory where your new folder is located using the cd command. For example:
    cd /path/to/new/folder
  3. Use the chmod command to grant diving permission to the folder. You can do this by running the following command:
    chmod 755 /path/to/new/folder

    This sets the permissions to rwx (read, write, execute) for the owner, r-x (read, execute) for the group, and r-x (read, execute) for others.

Breaking down the permissions:

Here's a breakdown of what each permission means:

Verify the permissions:

To verify that the permissions have been set correctly, you can use the ls command with the -ld option:

ls -ld /path/to/new/folder

This will display the permissions for the folder in a human-readable format.

That's it! Your new folder should now have diving permission set.