Univention Bugzilla – Attachment 7539 Details for
Bug 39700
univention-system-activation: On non-master systems, root ssh restrictions are not removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for correct call in postrm
bug39700-postrm.patch (text/plain), 2.16 KB, created by
Alexander Kläser
on 2016-03-16 15:35:40 CET
(
hide
)
Description:
Patch for correct call in postrm
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2016-03-16 15:35:40 CET
Size:
2.16 KB
patch
obsolete
>diff --git a/base/univention-system-activation/debian/univention-system-activation.postrm b/base/univention-system-activation/debian/univention-system-activation.postrm >index 3691f78..ca76b72 100644 >--- a/base/univention-system-activation/debian/univention-system-activation.postrm >+++ b/base/univention-system-activation/debian/univention-system-activation.postrm >@@ -32,15 +32,4 @@ > > #DEBHELPER# > >-# allow root login again >-ucr unset --force auth/gdm/user/root \ >- auth/kdm/user/root \ >- auth/login/user/root \ >- auth/other/user/root \ >- auth/sshd/user/root >- >-# reset su restrictions >-ucr unset --force auth/su/restrict \ >- auth/su/user/root >- > exit 0 >diff --git a/base/univention-system-activation/debian/univention-system-activation.prerm b/base/univention-system-activation/debian/univention-system-activation.prerm >index ccfe5b6..c40fac2 100644 >--- a/base/univention-system-activation/debian/univention-system-activation.prerm >+++ b/base/univention-system-activation/debian/univention-system-activation.prerm >@@ -37,6 +37,8 @@ case "$1" in > # if package configuration is active, deactivate it > if [ -n "$apache2_system_activation_sites" ]; then > /usr/sbin/univention-system-activation stop >+ else >+ /usr/sbin/univention-system-activation allow-root > fi > ;; > >diff --git a/base/univention-system-activation/scripts/univention-system-activation b/base/univention-system-activation/scripts/univention-system-activation >index 6b7e705..9fcf82e 100755 >--- a/base/univention-system-activation/scripts/univention-system-activation >+++ b/base/univention-system-activation/scripts/univention-system-activation >@@ -50,8 +50,11 @@ function allow_root_login() { > auth/su/user/root > > # some values were not set during the pam installation, because they were set >- # in the force layer. Reconfigure pam >- dpkg -l univention-pam > /dev/null 2>&1 && dpkg-reconfigure univention-pam >+ # in the force layer. Reconfigure PAM if no other dpkg process is running >+ # (e.g., when "stop" is called in the postrm script). >+ fuser /var/lib/dpkg/lock >/dev/null 2>&1 \ >+ || dpkg -l univention-pam > /dev/null 2>&1 \ >+ && dpkg-reconfigure univention-pam > } > > function restrict_root_login() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39700
:
7455
|
7456
|
7534
|
7536
| 7539