mirror of
git://slackware.nl/current.git
synced 2025-01-09 05:24:36 +01:00
f493ddecac
a/kernel-firmware-20230117_7e4f0ed-noarch-1.txz: Upgraded. a/kernel-generic-6.1.7-x86_64-1.txz: Upgraded. a/kernel-huge-6.1.7-x86_64-1.txz: Upgraded. a/kernel-modules-6.1.7-x86_64-1.txz: Upgraded. a/pkgtools-15.1-noarch-3.txz: Rebuilt. installpkg: allow xz to use all the available CPU threads. makepkg: by default, allow xz to determine how many threads to use. However, on 32-bit platforms default to 2 threads since we were using this before. If allowed to decide, xz seems to only want to use a single thread on 32-bit. ap/nano-7.2-x86_64-1.txz: Upgraded. ap/sudo-1.9.12p2-x86_64-1.txz: Upgraded. This update fixes a flaw in sudo's -e option (aka sudoedit) that could allow a malicious user with sudoedit privileges to edit arbitrary files. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-22809 (* Security fix *) d/kernel-headers-6.1.7-x86-1.txz: Upgraded. k/kernel-source-6.1.7-noarch-1.txz: Upgraded. kde/plasma-wayland-protocols-1.10-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
32 lines
983 B
Bash
Executable file
32 lines
983 B
Bash
Executable file
#!/bin/sh
|
|
TMP=/var/log/setup/tmp
|
|
if [ ! -d $TMP ]; then
|
|
mkdir -p $TMP
|
|
fi
|
|
T_PX="`cat $TMP/SeTT_PX`"
|
|
while [ "`cat $T_PX/etc/shadow | grep 'root:' | cut -f 2 -d :`" = "" ]; do
|
|
# There is no root password
|
|
dialog --title "WARNING: NO ROOT PASSWORD DETECTED" --yesno "There is \
|
|
currently no password set on the system administrator account (root). \
|
|
It is recommended that you set one now so that it is active the first \
|
|
time the machine is rebooted. This is especially important if you're \
|
|
using a network enabled kernel and the machine is on an Internet \
|
|
connected LAN. Would you like to set a root password?" 10 68
|
|
if [ $? = 0 ] ; then
|
|
clear
|
|
echo
|
|
echo
|
|
echo
|
|
echo "Setting password for 'root' user"
|
|
chroot $T_PX /usr/bin/passwd root
|
|
echo
|
|
echo -n "Press [enter] to continue:"
|
|
read junk;
|
|
echo
|
|
# Here we drop through, and if there's still no password the menu
|
|
# runs again.
|
|
else
|
|
# Don't set a password:
|
|
break;
|
|
fi
|
|
done
|