build-tools: Convert wrsroot -> sysadmin

This also changes the group wrs_protected to sys_protected
to de-brand the user and group names.

Change-Id: I887464a20fc17d66529caea03be2b445156f9426
Story: 2004716
Task: 30925
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2019-05-09 12:32:06 -07:00
parent 0592476865
commit 80ef15b981
4 changed files with 10 additions and 10 deletions

View File

@ -12,12 +12,12 @@ fi
ln -s $(ls /boot/vmlinuz-*.x86_64 | head -1) /boot/vmlinuz
ln -s $(ls /boot/initramfs-*.x86_64.img | head -1) /boot/initramfs.img
# Setup root and wrsroot users
# Setup root and sysadmin users
usermod -p $(openssl passwd -1 root) root
useradd -p $(openssl passwd -1 wrsroot) wrsroot
useradd -p $(openssl passwd -1 sysadmin) sysadmin
# Enable SUDO access for wrsroot
echo "wrsroot ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# Enable SUDO access for sysadmin
echo "sysadmin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# Enable remote root login to permit automated tools to run privileged commands
sed -i 's%^#\(PermitRootLogin \)%\1%' /etc/ssh/sshd_config

View File

@ -22,7 +22,7 @@ network --device=lo --hostname=localhost.localdomain
rootpw --lock
# System timezone
timezone America/New_York --isUtc
user --groups=wheel --name=wrsroot --password=$6$c3gaCcJlh.rp//Yx$/mIjNNoUDS1qZldBL29YSJdsA9ttPA/nXN1CPsIcCmionXC22APT3IoRSd9j5dPiZoviDdQf7YxLsOYdieOQr/ --iscrypted --gecos="wrsroot"
user --groups=wheel --name=sysadmin --password=$6$Mazui8NX.w6C5I$UWNzOnui.vb3qOT3Qyw0I6hMLW0G02KfQGcCZTXdVv9GDZLUXHJVeGEN1/RAe.EOgz2cLkFkVaS8pvwBTFG1j/ --iscrypted --gecos="sysadmin"
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm

View File

@ -13,7 +13,7 @@ network --device=lo --hostname=localhost.localdomain
rootpw --lock
timezone America/New_York --isUtc
user --groups=wheel --name=wrsroot --password=$6$c3gaCcJlh.rp//Yx$/mIjNNoUDS1qZldBL29YSJdsA9ttPA/nXN1CPsIcCmionXC22APT3IoRSd9j5dPiZoviDdQf7YxLsOYdieOQr/ --iscrypted --gecos="wrsroot"
user --groups=wheel --name=sysadmin --password=$6$c3gaCcJlh.rp//Yx$/mIjNNoUDS1qZldBL29YSJdsA9ttPA/nXN1CPsIcCmionXC22APT3IoRSd9j5dPiZoviDdQf7YxLsOYdieOQr/ --iscrypted --gecos="sysadmin"
# System bootloader configuration
#bootloader --location=mbr --boot-drive=sda

View File

@ -94,13 +94,13 @@ Power the system on with the DVD inserted. A system install will take place
(takes approximately 2 minutes). The system will then report an error and
ask you if you wish to report a bug, debug, or quit. Hit control-alt-F2 to
switch to a terminal window. Enter the following commands to change to the
installed system root, and create a (wrsroot) with sudo access:
installed system root, and create a (sysadmin) with sudo access:
cd /mnt/sysimage
chroot .
groupadd -r wrs
groupadd -f -g 345 wrs_protected
useradd -m -g wrs -G root,wrs_protected,wheel -d /home/wrsroot -p cBglipPpsKwBQ -s /bin/sh wrsroot
groupadd -f -g 345 sys_protected
useradd -m -g wrs -G root,sys_protected,wheel -d /home/sysadmin -p cBglipPpsKwBQ -s /bin/sh sysadmin
exit
Change back to the main window with control-alt-F1.
@ -108,5 +108,5 @@ Hit 3 <enter> (the "Quit" option). The system will reboot (make sure you eject
the DVD or use your BIOS to boot from hard disk rather than DVD; the installer
will re-run if the DVD boots again).
You can log into the system as user "wrsroot" with password "wrsroot".
You can log into the system as user "sysadmin" with password "sysadmin".