Folder permission control on a USB drive
A Folder permissions control system component should be installed to restrict access to folders on a USB storage in a Keenetic router. You can check it and install it if necessary on the General System Settings page in the KeeneticOS Update and Component Options section by pressing Component options.

Let's consider an example of configuring access rights for two users (alex
and guest_user
) who will be granted full access to their personal folders only.
First, connect the drive as instructed: Connecting a USB drive.
Then go to the Applications page. Click the SMB Server link to configure the file server. In the Users section, disable the Anonymous access option (otherwise, all users will have full rights without authorization) and create user accounts with access rights to drives by clicking the Add user button. In our example, we have added two accounts — alex
and guest_user
.

Then, on the Applications page in the USB Devices section, click on the connected disk entry.

The built-in file manager will appear, where you will see all the folders on the disk.

We will create two personal folders, alex
and guest
, in the root directory. You can do this either by connecting the drive to your computer or directly from the built-in file manager.
To do this, go to the root directory and then click (Create a new folder in the selected folder). In our example, two folders,
alex
and guest
, were created. If necessary, you can add files to the folder by clicking (Upload into the selected folder). To delete a file, click
(Delete).
Now select the necessary folder for setting certain access permissions and click on (Set permission to item).
The following access permissions are available:
Access denied;
Read-only;
Read & Write;
Inherit (rights inherited from the parent folder).
If you want to grant full access to only one folder to a user and deny the others, this user should be granted the following rights:
Read-only for the whole drive;
Read & Write for the folder you want to give full access to;
Access denied for all folders in the root directory, except the folder you want to give full access to.
In our case, the alex
folder has Read & Write access for the alex
user and Access denied access for the guest_user
user.

For the guest
folder, in the same way, we have to set the permissions: for the guest_user
user — Read & Write, and for the alex
user — Access denied.

Next, go to the parent directory and click (Set permission to item) to edit the parent directory's permissions.
To allow users to find the folder they have access to, you need to set the parent directories to read-only. In our example, the parent directory is the USB drive itself, since the user folders are in the root directory, so alex
and guest_user
users have set read-only permissions.

This completes the folder permissions configuration.
Below is an example of how to set up access to a USB drive from Windows. Launch the Run application or the Explorer file manager. In the address bar, enter the Keenetic network name or the router's local IP address after \\
(in our example, it is \\192.168.1.1
).


Then the authorization request will follow, as the Anonymous access option has been disabled. Enter the login and password for the account you want to connect with (in our example, alex
or guest_user
).

After successful authorization, you will see the network share folders.

When you connect with an alex
account, you will only be allowed full access to the personal alex
folder. If you try to upload a file or create a folder anywhere else, you will see a message that you do not have permission.

If you try to access the guest
folder under the user alex
, you will see a message that access is denied.
