Notice: Running the AWS IoT Device Client will incur usage of AWS IoT services, and is likely to incur charges on your AWS account. Please refer the pricing pages for AWS IoT Core, AWS IoT Device Management, and AWS IoT Device Defender for more details.).
The AWS IoT Device Client requires specific permissions on files and directory storing these files. Please make sure these permissions are applied on files and directories which are created manually by user before starting the Device Client.
Note: The numbers mentioned bellow are Chmod Permissions for File or Directory
File | Chmod Permissions | Required |
---|---|---|
Private Keys | 600 | Yes |
Public Certificates | 644 | Yes |
Root Certificate Authority | 644 | Yes |
CSR File | 600 | Yes |
Log File | 600 | Yes |
Job Handler | 700 | Yes |
Config File | 640 | Recommended |
HTTP Proxy Config File | 600 | Recommended |
Pub/Sub Files | 600 | Yes |
Sensor Pubilsh Pathname Socket | 660 | Yes |
PKCS11 Library File | 640 | Yes |
Directory | Chmod Permissions | Required |
---|---|---|
Directory Storing Private Key | 700 | Yes |
Directory Storing Public Certificates | 700 | Yes |
Directory Storing Root Certificate Authority | 700 | Yes |
Directory Storing CSR File | 700 | Yes |
Directory Storing Log File | 745 | Yes |
Directory Storing Config Files | 745 | Recommended |
Directory Storing PubSub File | 745 | Yes |
Directory Storing Sensor Publish Pathname Socket | 700 | Yes |
Directory Storing PKCS11 Library File | 700 | Yes |
Note: It is worth noting here that files are directories storing these files created by AWS IoT Device Client will have the above mentioned permissions set by default
Next: Environment Variables