[PATCH 2/3] On interactive installs, default the root account to locked.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's up to firstboot to set up the first user as the admin.  Or, the user
can go through with a kickstart install.

This requires an updated version of pykickstart that understands the rootpw
command doesn't need a password argument if it's just going to lock the
account.
---
 anaconda.spec.in             |    2 +-
 data/interactive-defaults.ks |    1 +
 pyanaconda/kickstart.py      |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/anaconda.spec.in b/anaconda.spec.in
index 86fc57e..8d4130d 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -26,7 +26,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 %define intltoolver 0.31.2-3
 %define libnlver 1.0
 %define libselinuxver 1.6
-%define pykickstartver 1.99.14
+%define pykickstartver 1.99.15
 %define rpmpythonver 4.2-0.61
 %define slangver 2.0.6-2
 %define yumver 2.9.2
diff --git a/data/interactive-defaults.ks b/data/interactive-defaults.ks
index f692ccd..0046cc3 100644
--- a/data/interactive-defaults.ks
+++ b/data/interactive-defaults.ks
@@ -2,3 +2,4 @@
 # This is not loaded if a kickstart file is provided on the command line.
 auth --enableshadow --passalgo=sha512
 firstboot --enable
+rootpw --lock
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 7c3baa2..0c4d802 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1212,7 +1212,7 @@ class RaidData(commands.raid.F15_RaidData):
                                      parents=request)
             storage.createDevice(luksdev)
 
-class RootPw(commands.rootpw.F8_RootPw):
+class RootPw(commands.rootpw.F18_RootPw):
     def execute(self, storage, ksdata, instClass, users):
         algo = users.getPassAlgo(ksdata.authconfig.authconfig)
         users.setRootPassword(self.password, self.isCrypted, self.lock, algo)
-- 
1.7.8.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux