[xguest/f19] Add random password so xguest will show up in gdm.
Daniel J Walsh
dwalsh at fedoraproject.org
Mon Aug 26 20:17:57 UTC 2013
commit 4e9aa057f9a95804362d1aac45b0642c6113f0a8
Author: Dan Walsh <dwalsh at redhat.com>
Date: Mon Aug 26 16:17:46 2013 -0400
Add random password so xguest will show up in gdm.
xguest.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/xguest.spec b/xguest.spec
index 836354c..e29efb5 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: 28%{?dist}
+Release: 30%{?dist}
License: GPLv2+
Group: System Environment/Base
BuildArch: noarch
@@ -37,7 +37,7 @@ install -m0644 xguest.conf %{buildroot}/%{_sysconfdir}/security/namespace.d/
if [ $1 -eq 1 ]; then
semanage user -a -S targeted -P xguest -R xguest_r xguest_u 2> /dev/null || :
(useradd -c "Guest" -Z xguest_u -d /var/lib/xguest/home/xguest xguest || semanage login -a -S targeted -s xguest_u xguest || semanage login -m -S targeted -s xguest_u xguest) 2>/dev/null || exit 1
-sed -i 's/^xguest:!!:/xguest:\*:/g' /etc/shadow
+head -1 /dev/urandom | passwd xguest --stdin
echo "xguest:exclusive" >> /etc/security/sepermit.conf
@@ -63,6 +63,12 @@ sed -i '/^xguest/d' /etc/security/sepermit.conf
fi
%changelog
+* Mon Aug 26 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-30
+- Add random password so xguest will show up in gdm.
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.10-29
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
* Mon May 13 2013 Dan Walsh <dwalsh at redhat.com> - 1.0.10-28
- Remove sabayon support from xguest, no longer supported.
- Remove /etc/skel directories
More information about the scm-commits
mailing list