Skip to content

Commit 1f184ff

Browse files
authored
PR review edit
1 parent 02bc15f commit 1f184ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/iot-edge/how-to-access-host-storage-from-module.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,17 @@ For example, on a Linux system, `"Binds":["/etc/iotedge/storage/:/iotedge/storag
7373

7474
You can find more details about create options from [docker docs](https://docs.docker.com/engine/api/v1.32/#operation/ContainerCreate).
7575

76-
## Host System Permissions
76+
## Host system permissions
77+
7778
On Linux devices, make sure that the user profile for your module has the required read, write, and execute permissions to the host system directory. Returning to the earlier example of enabling IoT Edge hub to store messages in your device's local storage, you need to grant permissions to its user profile, UID 1000. There are several ways to manage directory permissions on Linux systems, including using `chown` to change the directory owner and then `chmod` to change the permissions, such as:
7879

7980
```bash
8081
sudo chown 1000 <HostStoragePath>
8182
sudo chmod 700 <HostStoragePath>
8283
```
8384

84-
On Windows devices, you will also need to configure permissions on the host system directory. This can be done through powershell:
85+
On Windows devices, you will also need to configure permissions on the host system directory. You can use PowerShell to set permissions:
86+
8587
```powershell
8688
$acl = get-acl <HostStoragePath>
8789
$ace = new-object system.security.AccessControl.FileSystemAccessRule('Authenticated Users','FullControl','Allow')

0 commit comments

Comments
 (0)