Skip to content

Commit b2cdab2

Browse files
authored
Add photon:vision user (#83)
1 parent ad10d84 commit b2cdab2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install_common.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ cat > /etc/systemd/journald.conf.d/60-limit-log-size.conf <<EOF
1515
SystemMaxUse=100M
1616
EOF
1717

18+
# Create user photon:vision login
19+
echo "creating photon user"
20+
useradd photon -m -b /home -s /bin/bash
21+
usermod -a -G sudo photon
22+
echo 'photon ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_photon-nopasswd >/dev/null
23+
chmod 0440 /etc/sudoers.d/010_photon-nopasswd
24+
25+
echo "photon:vision" | chpasswd
26+
1827
# Add a helpful message to the logon screen
1928
# ASCII Art generated by: https://www.asciiart.eu/image-to-ascii
2029
cp -f ./files/issue.txt /etc/issue

0 commit comments

Comments
 (0)