Skip to content

Commit 3b39306

Browse files
committed
Fix permission command
1 parent 39a5e92 commit 3b39306

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/iot-edge/how-to-connect-downstream-iot-edge-device.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ To enable secure connections, every IoT Edge downstream device in a gateway scen
435435
# Give aziotcs ownership to certificates
436436
# Read and write for aziotcs, read-only for others
437437
sudo chown -R aziotcs:aziotcs /var/aziot/certs
438-
sudo chmod 644 /var/aziot/certs/*
438+
sudo find /var/aziot/certs -type f -name "*.*" -exec chmod 644 {} \;
439439

440440
# Give aziotks ownership to private keys
441441
# Read and write for aziotks, no permission for others
442442
sudo chown -R aziotks:aziotks /var/aziot/secrets
443-
sudo chmod 600 /var/aziot/secrets/*
443+
sudo find /var/aziot/secrets -type f -name "*.*" -exec chmod 600 {} \;
444444
```
445445
446446
01. Install the **root CA certificate** on the downstream IoT Edge device by updating the certificate store on the device using the platform-specific command.

articles/iot-edge/how-to-create-transparent-gateway.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ If you don't have your own certificate authority and want to use demo certificat
135135
# Give aziotcs ownership to certificates
136136
# Read and write for aziotcs, read-only for others
137137
sudo chown -R aziotcs:aziotcs /var/aziot/certs
138-
sudo chmod 644 /var/aziot/certs/*
138+
sudo find /var/aziot/certs -type f -name "*.*" -exec chmod 644 {} \;
139139

140140
# Give aziotks ownership to private keys
141141
# Read and write for aziotks, no permission for others
142142
sudo chown -R aziotks:aziotks /var/aziot/secrets
143-
sudo chmod 600 /var/aziot/secrets/*
143+
sudo find /var/aziot/secrets -type f -name "*.*" -exec chmod 600 {} \;
144144
```
145145

146146
# [IoT Edge for Linux on Windows](#tab/eflow)

0 commit comments

Comments
 (0)