View | Details | Raw Unified | Return to bug 39700 | Differences between
and this patch

Collapse All | Expand All

(-)a/base/univention-system-activation/debian/univention-system-activation.postrm (-11 lines)
 Lines 32-46    Link Here 
32
32
33
#DEBHELPER#
33
#DEBHELPER#
34
34
35
# allow root login again
36
ucr unset --force auth/gdm/user/root \
37
				auth/kdm/user/root \
38
				auth/login/user/root \
39
				auth/other/user/root \
40
				auth/sshd/user/root
41
42
# reset su restrictions
43
ucr unset --force auth/su/restrict \
44
				auth/su/user/root
45
46
exit 0
35
exit 0
(-)a/base/univention-system-activation/debian/univention-system-activation.prerm (+2 lines)
 Lines 37-42   case "$1" in Link Here 
37
		# if package configuration is active, deactivate it
37
		# if package configuration is active, deactivate it
38
		if [ -n "$apache2_system_activation_sites" ]; then
38
		if [ -n "$apache2_system_activation_sites" ]; then
39
			/usr/sbin/univention-system-activation stop
39
			/usr/sbin/univention-system-activation stop
40
		else
41
			/usr/sbin/univention-system-activation allow-root
40
		fi
42
		fi
41
		;;
43
		;;
42
44
(-)a/base/univention-system-activation/scripts/univention-system-activation (-2 / +5 lines)
 Lines 50-57   function allow_root_login() { Link Here 
50
		auth/su/user/root
50
		auth/su/user/root
51
51
52
	# some values were not set during the pam installation, because they were set
52
	# some values were not set during the pam installation, because they were set
53
	# in the force layer. Reconfigure pam
53
	# in the force layer. Reconfigure PAM if no other dpkg process is running
54
	dpkg -l univention-pam > /dev/null 2>&1 && dpkg-reconfigure univention-pam
54
	# (e.g., when "stop" is called in the postrm script).
55
	fuser /var/lib/dpkg/lock >/dev/null 2>&1 \
56
		|| dpkg -l univention-pam > /dev/null 2>&1 \
57
		&& dpkg-reconfigure univention-pam
55
}
58
}
56
59
57
function restrict_root_login() {
60
function restrict_root_login() {

Return to bug 39700