live-iso-gnome/hooks/0-create-liveuser.chroot

11 lines
319 B
Plaintext
Raw Normal View History

2024-08-01 20:48:06 +02:00
#!/bin/bash
2024-08-01 20:30:26 +02:00
2024-11-27 21:20:58 +01:00
groupadd -g 1001 "pikaos"
2024-11-27 18:52:36 +01:00
adduser --uid 1001 --gid 1001 --quiet --disabled-password --shell /bin/bash --gecos "PikaOS Live User" "pikaos"
2024-08-01 20:48:06 +02:00
passwd -d "pikaos"
for group in adm cdrom sudo render dip video plugdev input render lpadmin sambashare
do
groupadd $group || true
usermod -a -G $group "pikaos"
done