[xguest/f20] Fix to add random password on upgrade
Daniel J Walsh
dwalsh at fedoraproject.org
Thu Aug 29 15:05:32 UTC 2013
commit 5211a5ccd4c5b6ed00728c1f2f51e07ecf1c17ad
Author: Dan Walsh <dwalsh at redhat.com>
Date: Thu Aug 29 11:05:12 2013 -0400
Fix to add random password on upgrade
xguest.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/xguest.spec b/xguest.spec
index e29efb5..71504cc 100644
--- a/xguest.spec
+++ b/xguest.spec
@@ -1,7 +1,7 @@
Summary: Creates xguest user as a locked down user
Name: xguest
Version: 1.0.10
-Release: 30%{?dist}
+Release: 31%{?dist}
License: GPLv2+
Group: System Environment/Base
BuildArch: noarch
@@ -62,7 +62,13 @@ sed -i '/^xguest/d' /etc/security/sepermit.conf
fi
+%triggerpostun -- xguest < 1.0.10-31
+head -1 /dev/urandom | passwd xguest --stdin
+
%changelog
+* Thu Aug 2 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-31
+- Fix to add random password on upgrade
+
* Mon Aug 26 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-30
- Add random password so xguest will show up in gdm.
More information about the scm-commits
mailing list