Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish)
  • Search

Logowanie na roota za pomocą Lightdm

Witajcie na polskim forum użytkowników Gentoo!
Opis instalacji i pracy z Gentoo. Pozostała dokumentacja Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Author
Message
robertsurma
n00b
n00b
User avatar
Posts: 56
Joined: Thu Jan 17, 2008 4:08 pm
Location: Tychy
Contact:
Contact robertsurma
Website

Logowanie na roota za pomocą Lightdm

  • Quote

Post by robertsurma » Sat Mar 08, 2014 9:48 pm

Niedawno zmieniłem GDM na Lightdm. Wszystko działa, ale teraz nie mogę zalogować się na roota (oczywiście, logowanie w trybie tekstowym działa bez zarzutu). Po wybraniu "Inny użytkownik" wpisuję "root", hasło, zatwierdzam... i nic się nie dzieje (nie ma nawet komunikatu o błędzie). Podejrzewam, że to jakiś problem z PAM, ale nie wiem dokładnie co można by zmienić.

Konfiguracja i logi poniżej:

/etc/lightdm/lightdm.conf

Code: Select all

[LightDM]
log-directory=/var/log/lightdm
run-directory=/usr/sbin
cache-directory=/var/cache/lightdm
sessions-directory=/usr/share/xsessions
remote-sessions-directory=/usr/share/remote-sessions
greeters-directory=/usr/share/xgreeters

[SeatDefaults]
greeter-session=lightdm-gtk-greeter
greeter-show-manual-login=true
greeter-show-remote-login=false
session-wrapper=/etc/lightdm/Xsession
greeter-session=lightdm-gtk-greeter

[XDMCPServer]

[VNCServer]
/etc/lightdm/users.conf

Code: Select all

[UserAccounts]
#minimum-uid=1000
minimum-uid=0
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
/etc/pam.d/lightdm

Code: Select all

#%PAM-1.0
# Block login if they are globally disabled
auth      required pam_nologin.so

# Load environment from /etc/environment and ~/.pam_environment
auth      required pam_env.so

# Use /etc/passwd and /etc/shadow for passwords
auth      required pam_unix.so

# Check account is active, change password if required
account   required pam_unix.so

# Allow password to be changed
password  required pam_unix.so

# Setup session
session   required pam_unix.so
session   optional pam_systemd.so
# File autogenerated by pamd_mimic in pam eclass

auth	include		system-local-login
account	include		system-local-login
session	include		system-local-login
/var/log/lightdm/ligthdm.log

Code: Select all

[+6332.35s] DEBUG: Session pid=3289: Continue authentication
[+6333.75s] DEBUG: Session pid=3427: Authentication complete with return value 0: Success
[+6333.75s] DEBUG: Session pid=3289: Authenticate result for user root: Success
[+6333.76s] DEBUG: Session pid=3289: User root authorized
[+6333.84s] DEBUG: Session pid=3289: Greeter requests session IceWM
[+6333.93s] DEBUG: Writing /root/.dmrc
[+6334.04s] DEBUG: Seat: Returning to existing user session root
[+6334.04s] DEBUG: Session pid=3427: Sending SIGTERM
[+6334.04s] DEBUG: Unlocking ConsoleKit session a344be6244b706c285b22568503e5d67-1394303893.336727-860324836
[+6334.04s] DEBUG: Activating VT 7
[+6334.04s] DEBUG: Session pid=3427: Terminated with signal 15
[+6334.04s] DEBUG: Seat: Session stopped
Free as a bird...
Top
Jacekalex
Guru
Guru
User avatar
Posts: 554
Joined: Thu Sep 17, 2009 5:18 am

  • Quote

Post by Jacekalex » Sat Mar 22, 2014 2:09 pm

Mam tą wersję:

Code: Select all

x11-misc/lightdm-1.4.0-r2 gtk kde qt4
Wersja 1.8.5 się u mnie sypała przy kompilacji z powodu jakiegoś błędu qt5, ale ta starsza loguje u mnie na konto root bez problemu.
Top
robertsurma
n00b
n00b
User avatar
Posts: 56
Joined: Thu Jan 17, 2008 4:08 pm
Location: Tychy
Contact:
Contact robertsurma
Website

  • Quote

Post by robertsurma » Sat Mar 22, 2014 3:28 pm

A mógłbyś wkleić swoją zawartość pliku /etc/pam.d/lightdm ?
Wciąż mam przeczucie, że to sprawa wpisów w PAM niż samego lightdm.
Free as a bird...
Top
Jacekalex
Guru
Guru
User avatar
Posts: 554
Joined: Thu Sep 17, 2009 5:18 am

  • Quote

Post by Jacekalex » Mon Mar 24, 2014 10:14 am

Code: Select all

#%PAM-1.0

# Block login if they are disabled
auth      required pam_nologin.so

# Load environment from /etc/environment and ~/.pam_environment
auth      required pam_env.so

# Use /etc/passwd and /etc/shadow for passwords
auth      required pam_unix.so

# Check account is active, change password if required
account   required pam_unix.so

# Allow password to be changed
password  required pam_unix.so

# Setup session
session   required pam_unix.so
# File autogenerated by pamd_mimic in pam eclass


auth	include		system-local-login
account	include		system-local-login
session	include		system-local-login
Nic w nim nie zmieniałem.
U Ciebie to wygląda na jakiś problem z ConsoleKit albo Systemd (logind).
Top
robertsurma
n00b
n00b
User avatar
Posts: 56
Joined: Thu Jan 17, 2008 4:08 pm
Location: Tychy
Contact:
Contact robertsurma
Website

  • Quote

Post by robertsurma » Fri Jul 31, 2015 12:01 am

Po ponad rocznej przerwie, ponownie postanowiłem zmierzyć się z lightdm. Inny sprzęt, inny od nowa zbudowany system, inna wersja lightdm. Problem dokładnie taki sam: nie udało mi się zalogować na roota. Komunikat błędu także ten sam. :(

Podobna sytuacja jest w sddm. Deweloper wyjaśnia, iż jest to celowe działanie, aby zapewnić bezpieczeństwo systemowi. Więc zapewne z lightdm jest dokładnie tak samo.

Dla mnie to oczywiście nie ma sensu. Jak będę chciał się zalogować na roota w systemie graficznym, to mogę to w każdej chwili zrobić za pomocą Alt+F1 oraz startx. Trochę więcej pisania... ale jak ktoś będzie chciał, to zaloguje się. Więc poza drobnym utrudnieniem życia, niczemu to nie służy.
Free as a bird...
Top
Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Polskie forum (Polish)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic