Area personale

 

Tag

 

Sponsored link

XCY Fanless Mini PC Intel - Linux support

 

Sonsored link

Nas |mini PC | router: different storage, RAM, CPU - Low consumption Linux

 

Ultime visite al Blog

taichungamorino11m12ps12acer.250miriade159prefazione09Marion20cassetta2limitedelbosco0marabertowjoerivetto6surfinia60Catter1naTraLeNuvoleM
 

Ultimi commenti

 
Creato da: taichung il 12/01/2011
Linux Drupal Pinephone Freerunner Android

 

 
« Switch Keyboard Map/Layo...Clock problems on virtua... »

Kubuntu 15.04 root login with sddm

Post n°49 pubblicato il 21 Giugno 2015 da taichung
 

Image by http://www.webupd8.org/Since Kubuntu 15.04 provides a new login manager, called sddm, as usual only logins above a certain ID (1000) is permitted. There are scenarios when you want to login in a graphical environment using the root account. Although many complains it is not the right thing to do, the pc is yours, and you have the right to do what you want. Therefore here I show you haw to enable root login on Sddm. I assume you know what you're doing, I don't take any responsibility if after following this Howto you can't login anymore!

I assume you've already set up a password for the root account.

First at all, you need to modify /etc/sddm.conf as following:

[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=breeze
CursorTheme=oxy-black

[Users]
HideShells=/usr/sbin/nologin,/bin/false,/bin/sync
MaximumUid=65000
MinimumUid=0

We've changed MinumumUid from 1000 to 0 (the root ID) and added the HideShells row to avoid system users appear in the login window.
You'll find out that the system user called Speech-dispatcher will still appear on Sddm: this is because of a bug, that user has /bin/sh as login shell which is a security issue; you can safely change his login shell in /etc/passwd from /bin/sh to /usr/sbin/nologin. In that way Speech-dispatcher won't appear on the login window anymore.
Second, you need to modify /etc/pam.d/sddm. Be careful! If you don't pay attention here you will end by locking yourself out from your computer!
You have to comment out the following:
auth    required        pam_succeed_if.so user != root nopasswdlogin
so that it'll look like:
#auth    required        pam_succeed_if.so user != root nopasswdlogin
Then uncomment
# auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
so that it'll become
auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
Now you can logout or reboot, and you'll be able to login by using the root account
 
Condividi e segnala Condividi e segnala - permalink - Segnala abuso
 
 
Vai alla Home Page del blog

Cerca in questo Blog

  Trova
 
RSS (Really simple syndication) Feed Atom
 

Archivio messaggi

 
 << Aprile 2024 >> 
 
LuMaMeGiVeSaDo
 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
 
 

Sponsored link

Dischi Nvme da 1 a 8 TB

 

Sponsored link

Inchiostro stampanti varie marche a prezzi competitivi

 

Sponsored link

Maschere per saldatura PC regolazione automatica della luce

 

 

© Italiaonline S.p.A. 2024Direzione e coordinamento di Libero Acquisition S.á r.l.P. IVA 03970540963