Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to stable-rc-0.6 grimoire by Jaka Kranjc (4cc5c8fc54181f5a6253f2e94f9e93f0f4deed8f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to stable-rc-0.6 grimoire by Jaka Kranjc (4cc5c8fc54181f5a6253f2e94f9e93f0f4deed8f)
  • Date: Tue, 23 Jan 2007 05:06:26 -0600

GIT changes to stable-rc-0.6 grimoire by Jaka Kranjc
<lynxlynxlynx AT sourcemage.org>:

security/shadow/CONFIGURE | 18 ++++++++++++++++++
security/shadow/FINAL | 9 ++++++---
security/shadow/HISTORY | 8 ++++++++
3 files changed, 32 insertions(+), 3 deletions(-)

New commits:
commit 4cc5c8fc54181f5a6253f2e94f9e93f0f4deed8f
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

shadow: making the account files mods opt-in

commit c01ca957777a2ea4dfdd26214debc6560f19bb92
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

shadow: fixing bug 8834 for good, hopefully

diff --git a/security/shadow/CONFIGURE b/security/shadow/CONFIGURE
new file mode 100755
index 0000000..6c97b30
--- /dev/null
+++ b/security/shadow/CONFIGURE
@@ -0,0 +1,18 @@
+config_query SHADOW_CONV "Attempt to convert/fix accounts (with installed
shadow utils)" n &&
+if [[ "$SHADOW_CONV" == y ]]; then
+ message "OK, checking your user and group accounts" &&
+ grpck -r "$INSTALL_ROOT/etc/group" "$INSTALL_ROOT/etc/gshadow" ||
+ {
+ message "there are problems with group... runinng grpck
+interactively" &&
+ grpck "$INSTALL_ROOT/etc/group" "$INSTALL_ROOT/etc/gshadow"
+ }
+ pwck -q -r "$INSTALL_ROOT/etc/passwd" "$INSTALL_ROOT/etc/shadow" ||
+ {
+ message "there are problems with passwd... runinng grpck
+interactively" &&
+ grpck "$INSTALL_ROOT/etc/passwd" "$INSTALL_ROOT/etc/shadow"
+ }
+fi
+# the tools give negative return even after successfully fixing stuff
+true
diff --git a/security/shadow/FINAL b/security/shadow/FINAL
index 0ab0430..eca5bd2 100755
--- a/security/shadow/FINAL
+++ b/security/shadow/FINAL
@@ -1,3 +1,6 @@
-#Create or update necessary files for shadow
-${INSTALL_ROOT}/usr/sbin/pwconv &&
-${INSTALL_ROOT}/usr/sbin/grpconv
+if [ "$SHADOW_CONV" == y ]; then
+ #Create or update necessary files for shadow
+ message "running pwconv and grpconv" &&
+ ${INSTALL_ROOT}/usr/sbin/pwconv &&
+ ${INSTALL_ROOT}/usr/sbin/grpconv
+fi
diff --git a/security/shadow/HISTORY b/security/shadow/HISTORY
index bd4348b..1e09e8e 100644
--- a/security/shadow/HISTORY
+++ b/security/shadow/HISTORY
@@ -1,3 +1,11 @@
+2007-01-22 Thomas Orgis <sobukus AT sourcemage.org>
+ * CONFIGURE: default the answer to "n" by default, making the account
+ modification opt-in as it should be
+
+2007-01-22 Thomas Orgis <sobukus AT sourcemage.org>
+ * CONFIGURE,FINAL: optionally check/correct the account files
+ that's final (hopefully) for bug 8834
+
2007-01-20 Thomas Orgis <sobukus AT sourcemage.org>
* pam.d/su: move that to coreutils as the su binary comes from
there now



  • [SM-Commit] GIT changes to stable-rc-0.6 grimoire by Jaka Kranjc (4cc5c8fc54181f5a6253f2e94f9e93f0f4deed8f), Jaka Kranjc, 01/23/2007

Archive powered by MHonArc 2.6.24.

Top of Page