DHT-changeOwner.notice
author William
Thu, 05 Jul 2018 08:48:18 +0000
changeset 4 68a4f654dc00
permissions -rw-r--r--
first
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
William
parents:
diff changeset
     1
important!
William
parents:
diff changeset
     2
after recompile of the IOC, you have to set
William
parents:
diff changeset
     3
root as owner of the IOC-executable (bin/<arch>/kstm)
William
parents:
diff changeset
     4
and set the sticky bit so it will be executed as root 
William
parents:
diff changeset
     5
instead of local user.
William
parents:
diff changeset
     6
William
parents:
diff changeset
     7
the DHT22 temperature & humidity sensor need root access
William
parents:
diff changeset
     8
for direct interaction with the GPIO pins of the 
William
parents:
diff changeset
     9
raspberry pi!
William
parents:
diff changeset
    10
William
parents:
diff changeset
    11
do it as follows:
William
parents:
diff changeset
    12
William
parents:
diff changeset
    13
######
William
parents:
diff changeset
    14
cd bin/linux-arm/
William
parents:
diff changeset
    15
sudo chown root:root kstm
William
parents:
diff changeset
    16
sudo chmod u+s kstm
William
parents:
diff changeset
    17
######
William
parents:
diff changeset
    18
William
parents:
diff changeset
    19
check success with ls -la
William
parents:
diff changeset
    20
it should be marked red and have
William
parents:
diff changeset
    21
-r-sr-xr-x root root