do user setup "correctly"

This commit is contained in:
Pratham Patel 2024-04-30 10:42:00 +05:30
parent d3a5d4ea18
commit f692add983
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<image>
<users profiles="Azure,AWSEC2,OpenStack,LiveInstall">
<!-- The password here does not matter, it will be erased in config.sh -->
<user name="root" groups="root" password="linux" home="/root" pwdformat="plain" />
<user name="root" groups="root" home="/root" password="fedora_rocks!" pwdformat="plain" />
<user name="riscv" groups="riscv,wheel" home="/home/riscv" password="fedora_rocks!" pwdformat="plain" />
</users>
</image>

View File

@ -33,12 +33,6 @@ echo 'uninitialized' > /etc/machine-id
## remove random seed, the newly installed instance should make its own
rm -f /var/lib/systemd/random-seed
#======================================
# Delete & lock the root user password
#--------------------------------------
passwd -d root
passwd -l root
#======================================
# Setup default services
#--------------------------------------