After update can't login into user but can into root

When I try to login into XFCE as user I have black screen for ~3 seconds and then login prompt appears again (when I type wrong password it just show me that password is wrong) but I cane login into XFCE as root and it works(I cane login into user but only in tty ).
Thinks I tried

  • Update system pacman -Syyu
  • Update/Refresh mirrors
  • Update kernel 5.11 β†’ 5.12
  • Create new (test) user and try to login into XFCE and it worked but only for (test) user
  • remove /home/$USER/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml

System info

System:
  Kernel: 5.12.9-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.12-x86_64 
  root=UUID=3336b053-ef12-4676-b605-3ccb40e9c4b5 ro quiet 
  resume=UUID=9a24ccaf-b735-455e-832f-9b20379e3162 udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: MSI model: Z170A TOMAHAWK (MS-7970) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 1.B0 date: 04/18/2017 
CPU:
  Info: Quad Core model: Intel Core i7-6700K socket: U3E1 bits: 64 
  type: MT MCP arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 
  microcode: E2 cache: L1: 256 KiB L2: 8 MiB L3: 8 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 64026 
  Speed: 800 MHz min/max: 800/4200 MHz base/boost: 4000/8300 volts: 1.2 V 
  ext-clock: 100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 799 
  6: 800 7: 800 8: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: CardExpert driver: nvidia 
  v: 465.31 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1b80 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.0 
  screens: 1 
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.0x11.3") 
  s-diag: 1055mm (41.6") 
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
  diag: 686mm (27") 
  Monitor-2: DP-1 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  OpenGL: renderer: NVIDIA GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 
  direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio 
  vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 
  chip-ID: 8086:a170 class-ID: 0403 
  Device-2: NVIDIA GP104 High Definition Audio vendor: CardExpert 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.12.9-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: no 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: d000 bus-ID: 04:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 232.89 GiB used: 478.77 GiB (205.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 750 EVO 250GB 
  size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 1B6Q scheme: GPT 
Partition:
  ID-1: / raw-size: 223.79 GiB size: 219.28 GiB (97.98%) 
  used: 179.7 GiB (82.0%) fs: ext4 block-size: 4096 B dev: /dev/sda2 
  maj-min: 8:2 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/sda1 maj-min: 8:1 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 1024 KiB (0.0%) 
  priority: -2 dev: /dev/sda3 maj-min: 8:3 
Sensors:
  System Temperatures: cpu: 35.0 C mobo: 29.8 C gpu: nvidia temp: 42 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 234 Uptime: 55m wakeups: 0 Memory: 15.6 GiB 
  used: 2.42 GiB (15.5%) Init: systemd v: 248 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: pacman: 1721 lib: 492 Shell: Bash v: 5.1.8 
  running-in: xfce4-terminal inxi: 3.3.04

mhwd -li

Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2020.11.30               false            PCI


Warning: No installed USB configs!

neofetch

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   root@alm-ni 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ----------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro Linux x86_64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: MS-7970 1.0 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.12.9-1-MANJARO 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 1 hour, 4 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 1721 (pacman) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.1.8 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 1920x1080, 1920x1080 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   DE: Xfce 4.16 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM: Xfwm4 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM Theme: Matcha-sea 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Theme: Matcha-sea [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Icons: Papirus-Maia [GTK2], Adwaita [GTK3] 
                               Terminal: xfce4-terminal 
                               Terminal Font: Monospace 12 
                               CPU: Intel i7-6700K (8) @ 4.200GHz 
                               GPU: NVIDIA GeForce GTX 1080 
                               Memory: 2139MiB / 15970MiB 

I am new hear and english is not my first language so I am sorry for any mistakes

mh ok…

ok this works…

I would assume that there is something wrong with the password.

Try login as root and type

passwd yourusername

to set a new or identical password fΓΌr the user.

Relog and try again to login in lightdm.

Didn’t work
I can login as (normal) user into tty but when I try to login into XFCE it loop back into login prompt as before.
I cane log into XFCE as root or as (test) user so I assume there is something wrong with /home I remove :

because I was thinking that something broke there but that didn’t work either.

The login screen is called lightdm and has nothing to do with XFCE. It is just a program on top. So removing /home/$USER/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml will not help.

For safety, just rename .config:

mv .config config.bak

and see if there was the issue.

Are there any X files?

ls ~/.x* 

I guess you have to rename

mv .ICEauthority ICEauthority.bak
mv .Xauthority Xauthority.bak

If the files are there… It should be recreated.

Didn’t work
I mv .x files and it generated new .Xauthority and it still behave as before

wrong permissions?

ls -la ~/.Xauthority

I chmod a+rwx .Xauthority and
ls -lah .X* -rwxrwxrwx 1 dom dom 51 jΓΊn 28 00:08 .Xauthority
and it didn’t help

Ok no idea what it could be…

now the hammer and nail method:

  1. login as root on tty
  2. mv /home/username /home/username.bak
  3. userdel username
  4. useradd --create-home --password secret --uid 1000 --user-group --groups wheel --shell /bin/bash username
  5. Login to username
  6. Move (hidden) files which you mean are necessary from /home/username.bak
1 Like

I entered: useradd --create-home --password ... --uid 1000 --gid 1000 --groups wheel --shell /bin/bash ...
and it returns useradd: group '1000' does not exist

-gid 1001 works

Oh well instead --gid 1000 use --user-group. It should create the group.

It worked!
Thank you

2 Likes

In addition…

Was the update successful:

less +G /vr/log/pacman.log   # Go to end of pacman log and scroll/search backwards

Review the logs:

# Still can do this one
journalctl --list-boots  # find the boot number when the error occurred
journalctl --boot=N      # view journal for that specific boot

# If it happens again, login to a tty and also review
less /home/<USER>/.xsession-errors

Manjaro wiki lists these groups: lp,network,power,sys,wheel

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.