How do I get full permissions on a folder?

I'm new to Ubuntu and need to create a new folder in /var and need all users on the machine to have full permissions to this folder.

How should I proceed?

How do I get full permissions on a folder?

Fabby

33.9k38 gold badges93 silver badges191 bronze badges

asked Jan 11, 2016 at 22:42

5

Press Ctrl+Alt+T to go to a terminal and type:

sudo mkdir /var/szDirectoryName
sudo chmod a+rwx /var/szDirectoryName

Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...

Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp.
Beware however that all files in /tmp are deleted at boot time.

For any further information, here is a great resource on all directories in Linux.

answered Jan 11, 2016 at 22:56

How do I get full permissions on a folder?

FabbyFabby

33.9k38 gold badges93 silver badges191 bronze badges

5

Open Terminal

Create Directory with mkdir:

sudo mkdir /var/DirectoryName

To give all permissions to a folder give chmod -R 777:

sudo chmod -R 777 /var/DirectoryName

answered Jul 10, 2017 at 7:58

How do I get full permissions on a folder?

3

Below gives all permissions to everybody to all files and subdirectories:

chmod -R a+rwx path

answered Oct 12, 2021 at 8:39

How do I get full permissions on a folder?

Shital ShahShital Shah

6587 silver badges9 bronze badges

1

Last updated Friday, Sept. 9, 2022, at 3 p.m.

In many cases, you will need to change the permissions that a certain group or individual user has to a file or folder. For example, you can designate a special folder on the W: drive within your department's area called "Incoming" as a place where students can turn in their work. To do this, you would first need to create a new folder on the W: drive. By default, the new folder will have the same permissions as the parent folder, which would not allow students to submit their work, and may not allow students to even access the folder. You would then need to allow students access to the new folder, and set permissions for the folder. When you set permissions, you are specifying what level of access students have to the folder and its files and what students can do within that folder such as save, delete, or read files.
NOTE: The majority of these instructions refer to Computer in the Start Menu.

Contents:

  • Standard Permission Types
  • Create a New Folder
  • Accessing the Properties Dialog Box
  • Granting Access to a File or Folder
  • Setting Permissions
  • Advanced Folder Level Permissions

Standard Permission Types

There are six standard permission types which apply to files and folders in Windows:

  • Full Control
  • Modify
  • Read & Execute
  • List Folder Contents
  • Read
  • Write

Each level represents a different set of actions users can perform. See the table below for more information.

For folders you can also set your own unique permissions or create a variation on any of the standard permission levels. Within each of the permission levels are many possible variations. For information on some of these advanced options, refer to Advanced Folder Level Permissions below.

The following table represents the available standard permission types.

PermissionDescription
Full ControlPermits the user(s) to:
  • view file name and subfolders.
  • navigate to subfolders.
  • view data in the folder's files.
  • add files and subfolders to the folder.
  • change the folder's files.
  • delete the folder and its files.
  • change permissions.
  • take ownership of the folder and its files.
ModifyPermits the user(s) to:
  • view the file names and subfolders.
  • navigate to subfolders.
  • view data in the folder's files.
  • add files and subfolders to the folder.
  • change the folder's files.
  • delete the folder and its files.
  • open and change files.
Read & ExecutePermits the user(s) to:
  • view file names and subfolder names.
  • navigate to subfolders.
  • view data in the folder's files.
  • run applications.
List Folder Contents Permits the user(s) to:
  • view the file names and subfolder names.
  • navigate to subfolders.
  • view folders.
  • does not permit access to the folder's files.
Read Permits the user(s) to:
  • view the file names and subfolder names.
  • navigate to subfolders.
  • open files.
  • copy and view data in the folder's files.
Write The Read permissions, plus permits the user(s) to:
  • create folders.
  • add new files.
  • delete files.

Create a New Folder

In many cases you will need to create a new folder. If you are using an existing folder and do not wish to create a new folder, continue with Accessing the Properties Dialog Box.

  1. Click on the Start menu.
  2. Click Computer.
  3. From the Computer window, select the shared drive for your area or department (S Drive or W Drive).
  4. Navigate to the location you want the new folder to appear (e.g., within one of your existing folders).
  5. On the menu bar, select New Folder.
    OR
    Right click » select New » select Folder.
    A new folder is created which inherits the security permissions of its "parent."
  6. In the newly created folder, type the desired folder name.
  7. Press [Enter] or click off of the folder.

Accessing the Properties Dialog Box

When working with permissions in Windows 7, you are required to work from the Properties dialog box. This dialog box for the file or folder you are working with can be accessed in a few steps.

  1. Click on the Start menu.
  2. Click Computer.
  3. Select the folder or file you wish to adjust/view permissions for.
  4. Right-click the folder or file.
  5. Select Properties.
    The Properties dialog box appears.

Granting Access to a File or Folder

After creating a new folder, or even if you will use an existing folder, you will need to determine who will have access to it. Also, keep in mind that by default the same persons who have access to the "parent" (original) folder also have access to the new folder, and vice versa. This may not be ideal. It is a simple process to grant access to specific users for any folder you have created.

  1. Access the Properties dialog box.
  2. Select the Security tab.
    How do I get full permissions on a folder?

  3. Click Edit.
    The security tab opens in a new window.
  4. Click Add...
    The Select Users, Computers, or Groups dialog box appears.
    How do I get full permissions on a folder?

  5. In the Enter the object names to select text box, type the name of the user or group that will have access to the folder (e.g., 2125.engl.498.001 or ).
    HINT: You may type the beginning of the name and then click Check Names. The name will either be resolved or a list of users beginning with those characters will display for you to select from.
  6. Click OK.
    The Properties dialog box reappears.
  7. Click OK on the Security window.
  8. Continue with Setting Permissions below.

Setting Permissions

Once you have granted a group or individual user access to a folder, you will need to set permissions for the new user(s). When you set permissions, you are specifying what level of access a user(s) has to the folder and the files within it. Be careful about checking Deny for any permissions, as the Deny permission overrides any other related to Allow permissions.

Folder permissions can be changed only by the owner of the folder (i.e., the creator) or by someone who has been granted permission by the owner. If you are not the owner of the folder or have not been granted permission by the owner, all checkboxes will be gray. Therefore, you will not be able to make any changes until the owner grants you permission.

  1. Access the Properties dialog box.
  2. Select the Securitytab.
    The top portion of the dialog box lists the users and/or groups that have access to the file or folder.
  3. Click Edit
    How do I get full permissions on a folder?

  4. In the Group or user name section, select the user(s) you wish to set permissions for
  5. In the Permissions section, use the checkboxes to select the appropriate permission level
  6. Click Apply
  7. Click Okay
    The new permissions are added to the file or folder.

Advanced Folder Level Permissions

When you set permissions, you specify what users are allowed to do within that folder, such as save and delete files or create a new folder. You are not limited to choosing one of the standard permissions settings (Full Control, Modify, Read & Execute, List Folder Contents, Read, or Write). Instead of choosing one of these settings, you may set your own unique permissions based on what you would like users to be able to do. For an understanding of how options can be combined, refer to Permission Types: An Overview.

Remember, folder permissions can only be changed by the owner of the folder (i.e., the creator) or by someone who has been granted permission by the owner. If you are not the owner of the folder or have not been granted permission by the owner, the checkboxes will be grayed out. Therefore, you will not be able to make any changes until the owner grants you permission.

  1. Access the Properties dialog box
  2. Select the Security tab
  3. Near the bottom right of the Properties dialog box, click Advanced
    The Advanced Security Settings dialog box appears.
    How do I get full permissions on a folder?

  4. (Optional) If you do not want the new folder to have the same permissions as the "parent" (original) folder and wish to set unique permissions for the new folder, click the Change Permission button near the bottom. This will bring up a similar window.
    1. Uncheck the Include inheritable permissions from this object's parentcheckbox
      A Windows Security warning dialog box will appear.
      How do I get full permissions on a folder?

    2. Click Remove if you want someone removed from permission all together
      NOTE: Read the instructions carefully and choose the action you wish to have taken for permissions.
  5. Click the Change Permissions button
  6. Select the appropriate user
    OR
    Click Add and enter the name of the user or group that will have access to the folder.
  7. Click Edit...
    The Permissions Entry dialog box appears.
    How do I get full permissions on a folder?

  8. In the Permissions section, use the checkboxes to set the appropriate permissions
    NOTE: If you are not the owner of the folder or have not been granted permission by the owner, all checkboxes will be gray. Therefore you will not be able to make any changes until the owner grants you permission to do so.
  9. From the Apply to: pull-down list, select what level you wish to apply these permissions to
  10. Click OK
  11. In the Advanced Security Setting dialog box, click OK
  12. Click OK from the duplicate Advanced Security Settings
  13. In the Properties dialog box, click OK
    The new folder permissions are added for your specified user(s).

Was this article helpful? Yes No

View / Print PDF

How do I give a folder full permissions?

Granting Access to a File or Folder.
Access the Properties dialog box..
Select the Security tab..
Click Edit. ... .
Click Add... ... .
In the Enter the object names to select text box, type the name of the user or group that will have access to the folder (e.g., 2125. ... .
Click OK. ... .
Click OK on the Security window..

What is the meaning of chmod 777?

Some file permission examples: 777 - all can read/write/execute (full access). 755 - owner can read/write/execute, group/others can read/execute. 644 - owner can read/write, group/others can read only.

How do you unlock folder permissions?

Change permissions for a folder Right-click the affected folder, and choose "Properties..." from the pop-up menu. Click Security, and then the "Advanced..." button. Click the "Edit..." button (this button may also say "Change permissions").

How do I get full access to a folder in Windows 10?

Let us give permission as 'Everyone' to that folder..
Right-click on the main folder and choose 'Properties'..
Click the 'Security' tab ..
Look towards the bottom right hand side and click 'Advanced'..
Click the 'Owner' tab and click 'Edit'..
Under Owner, click on 'Change' link..
Type 'Everyone' and click on Apply and OK..