Creating a Restricted Group and Restricting Group Access to a Specific Directory Drive
In this article, we will discuss the process of creating a restricted group and restricting group access to a specific directory drive. This is a common scenario in managing file and directory access in a multi-user environment. By following the steps outlined below, you can ensure that only authorized users have access to sensitive directories and files.
Creating a Restricted Group
To create a restricted group, follow these steps:
Open the Command Prompt as an administrator.
Type the following command to create a new group:
net localgroup restricted /add
This will create a new group called "restricted".
Adding a User to the Restricted Group
To add a user to the restricted group, follow these steps:
Open the Command Prompt as an administrator.
Type the following command to add a user to the restricted group:
net localgroup restricted user1 /add
Replace "user1" with the actual username you want to add to the restricted group.
Restricting Group Access to a Specific Directory Drive
To restrict group access to a specific directory drive, follow these steps:
Open the Command Prompt as an administrator.
Type the following command to view the current permissions for the directory drive:
icacls [drive letter]:Type the following command to grant full control to the administrators group and deny all access to the restricted group:
icacls [drive letter]: /grant Administrators:F /deny restricted:F
Replace "[drive letter]" with the actual drive letter of the directory drive you want to restrict.
In this article, we have discussed the process of creating a restricted group and restricting group access to a specific directory drive. By following the steps outlined above, you can ensure that only authorized users have access to sensitive directories and files. This is an important step in securing your system and protecting your data.
References
Type: Books
Title: Windows Server 2019 Administration Inside Out
Author: Orin Thomas
Type: Articles
Title: How to Create a Group and Add Users to It in Windows 10
Publication: Windows Central
https://www.windowscentral.com/how-create-group-and-add-users-it-windows-10
Type: Online Resources
Title: Restricting Access to a Directory in Windows Server
Publication: Microsoft Docs
https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/restrict-access-to-directory