2015-06-30 22:31:25 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2015-07-27 20:32:35 +02:00
|
|
|
# Set the root password to 'root'
|
2015-06-30 22:31:25 +02:00
|
|
|
echo root:root | chpasswd
|
|
|
|
|
2015-07-27 20:32:35 +02:00
|
|
|
# Create a user 'gentoo' and set
|
|
|
|
# the password to 'gentoo'
|
2015-06-30 22:31:25 +02:00
|
|
|
useradd -m gentoo
|
2015-07-27 20:32:35 +02:00
|
|
|
echo gentoo:gentoo | chpasswd
|
|
|
|
|
|
|
|
# Make user 'gentoo' a power user
|
2015-06-30 22:31:25 +02:00
|
|
|
gpasswd -a gentoo disk
|
|
|
|
gpasswd -a gentoo wheel
|
|
|
|
gpasswd -a gentoo audio
|
|
|
|
gpasswd -a gentoo video
|
|
|
|
gpasswd -a gentoo floppy
|
|
|
|
gpasswd -a gentoo tape
|
|
|
|
gpasswd -a gentoo cdrom
|
|
|
|
gpasswd -a gentoo cdrw
|
|
|
|
gpasswd -a gentoo usb
|
|
|
|
|
|
|
|
gpasswd -a portage wheel
|
|
|
|
|
2015-07-27 20:32:35 +02:00
|
|
|
# For the grsec groups. Make sure these
|
|
|
|
# match whats in kernel-cofig!
|
2015-06-30 22:31:25 +02:00
|
|
|
groupadd -g 9995 graudit
|
|
|
|
groupadd -g 9996 grslink
|
|
|
|
groupadd -g 9997 grasock
|
|
|
|
groupadd -g 9998 grcsock
|
|
|
|
groupadd -g 9999 grssock
|