The officially official Devuan Forum!

You are not logged in.

#1 2023-03-13 12:04:57

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

[SOLVED] can't login use correct user and password

Hello i just restored my devuan workstation (i had some grub/efivars) issues
Everything works fine but i can't login. Btw there are two entries on boot menu but all lead to devuan installation.
I use correct user and password. It goes on loop after 1 second and won't let me in. I can boot though via root account and the password i have set.
Any ideas ?

I did:

cat /etc/passwd 

and in resutls my user is ok

rhtoras:x:1000:1000:rhtoras,,,:/home/rhtoras:/bin/bash

as root .profile contains:

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

mesg n 2> /dev/null || true

Any suggestions ?

Offline

#2 2023-03-13 12:13:26

ComputerBob
Member
From: The Sunshine State
Registered: 2018-10-11
Posts: 81  
Website

Re: [SOLVED] can't login use correct user and password

caps lock key?


ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)

Offline

#3 2023-03-13 12:20:36

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

Re: [SOLVED] can't login use correct user and password

ComputerBob wrote:

caps lock key?

nope

i found that if i press ctrl+alt+f1 to enter tty i can login with password and username ok
but i press startx it wont load and if i force i get the following error:

The path for the directory containing caja settings need read and write permissions: 

also

cd/home/rhtoras

won't work
only

cd/home 

which is empty if i press ls

p.s i use mate desktop that's why caja
and rhtoras is my user

Last edited by rhtoras (2023-03-13 12:21:52)

Offline

#4 2023-03-13 16:40:15

Grumpy
Member
Registered: 2022-07-18
Posts: 7  

Re: [SOLVED] can't login use correct user and password

From your previous problem I gather your home directory is on a separate partition.
Have you checked that the entry in /etc/fstab is correct to mount that partition?
Have you checked that the contents of the home partition look sensible?

Offline

#5 2023-03-14 08:31:12

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

Re: [SOLVED] can't login use correct user and password

Grumpy wrote:

From your previous problem I gather your home directory is on a separate partition.
Have you checked that the entry in /etc/fstab is correct to mount that partition?
Have you checked that the contents of the home partition look sensible?

yes i did all these...
the only downside is i discovered i could login as user from tty
what i did after a research is to recreate a /home/user directory via mkdir
then

sudo chown -R user:user /home/user

and just in case...

cp -rT /etc/skel /home/user

replaced user with my username

Then everything went just fine except from some files that were deleted but i had backup. It was helpfull i had a seperate /home partition. It save lives.

Last edited by rhtoras (2023-03-14 08:33:23)

Offline

#6 2023-03-14 17:03:34

chris2be8
Member
Registered: 2018-08-11
Posts: 264  

Re: [SOLVED] can't login use correct user and password

If you re-installed the system then your username might have had it's numeric UID changed (it's the 3rd field in /etc/passwd). That would mean that everything in it's home dir would be owned by the old UID, not it's new UID. The sudo chown -R user:user /home/user command would have fixed it. And destroyed most of the evidence.

I've hit this problem before when switching distributions.

Offline

Board footer