You are not logged in.

#1 2009-12-17 18:59:35

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

[solved]Can't login

I'm freaking out here, I can't log into my system, something went terribly wrong.
Whenever I try to log in I get "unable to cd to /home/my_username".

I looked at the permissions on the home folder and they seemed correct:

drwx------  my_username users

So the owner has full read,write and execute permissions and the owner is who the owner is supposed to be, yet I can't login.
I then deleted the user, purged that home directory, and created the user again (with the same UID, but it shouldn't matter)

I still couldn't log in. Now this is strange. I checked permissions on the /home folder itself, and they are:

drwxr-xr-x root root

So that seems to be ok too. What am I missing, why can't I log in?

Last edited by moljac024 (2009-12-17 20:03:42)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#2 2009-12-17 19:04:06

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [solved]Can't login

is your /home mounted?


Mr Green

Offline

#3 2009-12-17 19:07:47

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [solved]Can't login

See this. It mentions wrong permissions on /, which sounds plausible (since to cd into /some/folder you need execute permissions on /, /some and of course /some/folder).

Offline

#4 2009-12-17 19:12:52

Bralkein
Member
Registered: 2004-10-26
Posts: 354

Re: [solved]Can't login

Can you log in as root? If so, can you do "su user_name" to access the account that way?

Offline

#5 2009-12-17 19:17:16

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved]Can't login

It seems you are missing an (executable permission) x for your user on the tenth position.

Offline

#6 2009-12-17 19:20:31

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Can't login

I can log in as root and "su username" gives the same message.
I tried chmod -R 777 /home/username and still got the same message??

I have noticed that when I delete the user, and create it again, for some reason it's not added to the users group. (I get that from looking at /etc/group). But even if I add the user to the group by directly modifying /etc/group it still doesn't work.

I'm really stumped...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#7 2009-12-17 19:27:12

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved]Can't login

Try a "usermod -g users username" as root.

Offline

#8 2009-12-17 19:31:14

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Can't login

Ashren wrote:

Try a "usermod -g users username" as root.

Tried it. No luck. What I'm worried about is how the blazes can't it cd to the home dir when permission are 777 ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#9 2009-12-17 19:35:43

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved]Can't login

Did you read foutrelis' post?

Offline

#10 2009-12-17 19:37:52

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved]Can't login

Just to dot the is and cross the ts, could you post the output of ls -la ~?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#11 2009-12-17 19:51:13

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Can't login

I solved it, I think.

The execute permission seems to have been taken out from the . and .. folders on / and the group was switched to users.
I believe thunar did this, since I was using it to change some permissions and it seems it bugged out and caused that havoc.

EDIT: Thanks for the help everyone.

I would also recommend to people: NEVER use thunar or anything like as root that to change permissions on your system.

Last edited by moljac024 (2009-12-17 20:03:24)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#12 2009-12-17 20:14:20

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Can't login

Although I'm a little troubled by the "users not appearing in the users group after creation" situation. Any idea what might be up with that? Maybe something is still wrong somewhere that could cause me trouble further down the road?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#13 2009-12-17 20:16:46

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 907
Website

Re: [solved]Can't login

how did you created the user?

i always use

useradd -m username -d /home/username

and all works fine. Seems that you made something different^^

Offline

#14 2009-12-17 20:18:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Can't login

> Any idea what might be up with that?
I've told you, you should keep an eye on your cat.

If you add a user to a group, they should be there. Some people are reporting group.pacnew "problems" - maybe this is it?
http://bbs.archlinux.org/viewtopic.php?id=86938

Last edited by karol (2009-12-17 20:19:58)

Offline

#15 2009-12-17 20:57:58

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Can't login

I was adding users with adduser (the interactive script).

I actually reinstalled Arch a couple of days ago as I wanted to start using LVM, so it's a fresh install.
I took the chance to try Linux Mint and I caved in after 20 minutes smile

Last edited by moljac024 (2009-12-17 20:58:25)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

Board footer

Powered by FluxBB