Dominique Leuenberger 2023-12-06 08:32:21 +00:00 committed by Git OBS Bridge
parent c60d624768
commit 5742386c71

View File

@ -145,11 +145,10 @@ zypper --non-interactive rm -u skelcd-openSUSE || :
zypper rl $(seq 1 $(zypper ll | wc -l))
#======================================
# /etc/sudoers hack to fix #297695
# sudoers hack to fix #297695
# (Installation Live CD: no need to ask for password of root)
#--------------------------------------
sed -i -e "s/ALL ALL=(ALL) ALL/ALL ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers
chmod 0440 /etc/sudoers
echo "ALL ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/50-livecd
/usr/sbin/useradd -m -u 1000 linux -c "Live-CD User" -p ""