Added a user, trying to log in on it gives "Login incorrect"

I created an account (testi) for trying to troubleshoot an unrelated issue. I used useradd -m. After that I set the password for it and made sure it’s unlocked with passwd -S giving out

testi P 2022-05-05 0 99999 7 -1

Login attempts end with “Login incorrect”…

I have tried the solution for this thread but the ownership is right.

ls -la /home
drwx------ 1 testi testi 134 5. 5. 14:35 testi

and in the account’s home directory

drwx------ 1 testi testi 134 5. 5. 14:35 .
drwxr-xr-x 1 root root 40 5. 5. 14:35 …
-rw-r–r-- 1 testi testi 21 9. 1. 02:26 .bash_logout
-rw-r–r-- 1 testi testi 57 9. 1. 02:26 .bash_profile
-rw-r–r-- 1 testi testi 3824 14. 1. 19:52 .bashrc
drwxr-xr-x 1 testi testi 64 31. 1. 23:59 .config
-rw-r–r-- 1 testi testi 4855 30.10. 2017 .dir_colors
-rwxr-xr-x 1 testi testi 100 30.10. 2017 .Xclients
-rwxr-xr-x 1 testi testi 1637 30. 1. 03:50 .xinitrc

I have removed the account, and re-created it. I’ve tried different passwords. Always the same result. I am out of ideas.

inxi output:

System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=2fbe997b-0935-47a4-97a7-4dcfcca9d639 rw apparmor=1
    security=apparmor resume=UUID=ef6350b4-822e-4d24-98b7-0506817ede40
    udev.log_priority=3
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A serial: N/A
  Mobo: ASUSTeK model: Z87-A v: Rev 1.xx serial: <filter>
    UEFI: American Megatrends v: 2103 date: 08/15/2014
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 15.57 GiB used: 3.41 GiB (21.9%)
  Array-1: capacity: 32 GiB slots: 4 EC: None max-module-size: 8 GiB
    note: est.
  Device-1: ChannelA-DIMM0 type: DDR3 detail: synchronous size: 8 GiB
    speed: 1600 MT/s volts: N/A width (bits): data: 64 total: 64
    manufacturer: Kingston part-no: KHX1600C10D3/8GX serial: <filter>
  Device-2: ChannelA-DIMM1 type: no module installed
  Device-3: ChannelB-DIMM0 type: DDR3 detail: synchronous size: 8 GiB
    speed: 1600 MT/s volts: N/A width (bits): data: 64 total: 64
    manufacturer: Kingston part-no: KHX1600C10D3/8GX serial: <filter>
  Device-4: ChannelB-DIMM1 type: no module installed
CPU:
  Info: model: Intel Core i7-4770K socket: BGA1155 (1150) note: check bits: 64
    type: MT MCP arch: Haswell family: 6 model-id: 0x3C (60) stepping: 3
    microcode: 0x28
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 3169 high: 3501 min/max: 800/3900 base/boost: 3505/3800
    scaling: driver: intel_cpufreq governor: schedutil volts: 1.2 V
    ext-clock: 100 MHz cores: 1: 2851 2: 3465 3: 3500 4: 3500 5: 3501 6: 3501
    7: 1535 8: 3500 bogomips: 56017
  Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2
    bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb erms est f16c flush_l1d fma fpu fsgsbase fxsr ht ibpb ibrs
    ida invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe
    msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs
    pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sdbg sep smep
    ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc tsc_adjust
    tsc_deadline_timer vme xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070 Ti] vendor: ASUSTeK driver: nvidia
    v: 510.60.02 alternate: nouveau,nvidia_drm pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0
    chip-ID: 10de:1b82 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 93 s-size: 524x292mm (20.63x11.50")
    s-diag: 600mm (23.62")
  Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 94
    size: 521x293mm (20.51x11.54") diag: 598mm (23.53") modes: N/A
  OpenGL: renderer: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.60.02 direct render: Yes
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
  Device-3: Microsoft LifeChat LX-3000 Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-12:4 chip-ID: 045e:070f
    class-ID: 0300
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.49 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK AM1I-A driver: r8168 v: 8.049.02-NAPI modules: r8169 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.96 TiB used: 266.15 GiB (8.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: BB6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: DT01ACA300
    size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: ABB0 scheme: GPT
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24F1ST a rev: 1.00
    dev-links: cdrom
  Features: speed: 48 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 78.12 GiB size: 76.4 GiB (97.79%) used: 32.12 GiB (42.0%)
    fs: ext4 block-size: 4096 B dev: /dev/sdb4 maj-min: 8:20 label: Root
    uuid: 2fbe997b-0935-47a4-97a7-4dcfcca9d639
  ID-2: /boot/efi raw-size: 128 MiB size: 126 MiB (98.45%)
    used: 270 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/sdb1 maj-min: 8:17
    label: N/A uuid: 8F97-68BB
  ID-3: /home raw-size: 511 GiB size: 511 GiB (100.00%)
    used: 234.03 GiB (45.8%) fs: btrfs block-size: 4096 B dev: /dev/sdb5
    maj-min: 8:21 label: Homes uuid: dc0acd57-2d63-4d6a-a2e0-fa51a0baab29
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sdb3 maj-min: 8:19 label: Swap
    uuid: ef6350b4-822e-4d24-98b7-0506817ede40
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 350 MiB fs: vfat label: N/A
    uuid: 325F-EABE
  ID-2: /dev/sda2 maj-min: 8:2 size: 232.03 GiB fs: ntfs label: Windows
    uuid: 742CB3ED2CB3A88E
  ID-3: /dev/sda3 maj-min: 8:3 size: 521 MiB fs: ntfs label: N/A
    uuid: 62F6646CF6644301
  ID-4: /dev/sdb2 maj-min: 8:18 size: 2.15 TiB fs: ntfs label: Windata
    uuid: E0ECB5F6ECB5C6D6
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8008 class-ID: 0900
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8000 class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 14 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-3:2 info: Logitech G402 Gaming Mouse type: Mouse,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 300mA chip-ID: 046d:c07e class-ID: 0300 serial: <filter>
  Device-2: 3-9:3 info: Microdia USB DEVICE type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 0c45:672e class-ID: 0301
  Device-3: 3-12:4 info: Microsoft LifeChat LX-3000 Headset type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 045e:070f class-ID: 0300
  Hub-6: 4-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 36 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 291 Uptime: 3h 59m wakeups: 2 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1493
  lib: 406 flatpak: 0 Shell: Bash (sudo) v: 5.1.16 running-in: konsole
  inxi: 3.3.15

I tested your scenario. I can reproduce - to a degree.

If you do a user impersonation using su immediately after creating the user - like below example - If will fail.

su -l testi

However - if you log in from TTY or Login screen at least once then the impersonation works.

I have no idea why it is so - one possibility is a flag in /etc/shadow indicating if the user has authenticated after account creation.

That is an interesting find but I have tried it through TTY both before and after a cold boot and on TTY2 as well after logging in on my regular account. That’s how I got the error. The “regular” login screen just fails silently.

Might be related… or not. You know how these things go. :wink:

Which display manager do you use?

The display manager shouldn’t fail on a new user - this points in the direction of a configuration issue.

Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
  2. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.

Done. I added the output of inxi and checked the logs from the HowTo.