Skip to content

Commit

Permalink
Raspberry Pi Hedgehog sensor user should belong to netdev group, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Feb 16, 2024
1 parent 75035b7 commit 554210c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sensor-raspi/sensor_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,16 @@ create_user() {

# Set defaults but it is STRONGLY recommended that these be changed before deploying Sensor
local user='sensor'
local group='sensor'
local pass='Hedgehog_Linux'
local root_pass='Hedgehog_Linux_Root'

groupadd "$user"
useradd -m -g sensor -u 1000 -s /bin/bash "$user"
useradd -m -g "$group" -u 1000 -s /bin/bash "$user"
usermod -a -G netdev "$user"

echo -n "${user}:${pass}" | chpasswd --crypt-method YESCRYPT
echo -n "root:${root_pass}" | chpasswd --crypt-method YESCRYPT

}

install_deps() {
Expand Down

0 comments on commit 554210c

Please sign in to comment.