You are not logged in.

#1 2009-11-05 21:23:02

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

[SOLVED] one user cannot login (segfault, .inputrc)

I can't use my usual user account. At the login prompt, after I give password, there is a message about last login and the time of my last login attempt. Login respawns without an error message. "w" doesnt show the user and I can't su to it. It's like just pressing enter, nothing happens. I have change passwd and tried to login, same story. root and another user can login.

The time was off when i first tried to login. Maybe that is something. I'm on 386.

Last edited by kanonmat (2009-11-07 22:12:26)


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#2 2009-11-05 21:52:46

turing
Member
From: Munich, Germany
Registered: 2006-12-10
Posts: 30

Re: [SOLVED] one user cannot login (segfault, .inputrc)

something strange like "logout" in your ~/.bashrc?

Offline

#3 2009-11-05 22:25:31

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Do you get an error message from su <youraccount>?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#4 2009-11-06 13:40:26

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

luser cant login. I have tried with a .bashrc for another user and I have success with the luser .bashrc copied to the other user. No error messages at su. /var/log/auth have timestamps for lusers logins. Sessions close 2 to 3 seconds after opening.

from /var/log/auth:
Nov 6 14:01:46 hive login[1664] : pam-unix(login:session): session opened for user luser by LOGIN(uid=0)
Nov 6 14:01:49 hive login[1664] : pam-unix(login:session): session closed for user luser

luser has an entry in /etc/passwd, but not in /etc/group or /etc/gshadow. (luser is a member of several groups, though.) /etc/group is almost 3 months old and I could login the day before this happened. Using usermod to mod the account: "usermod -a -G users -d /home/luser -u 1000 luser". I'm not sure it is right, haven't used that command before.

I manually added luser entries in /etc/group and /etc/gshadow. It didn't help. reboot didn't either.

Is something up with PAM? I don't know anything about it.


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#5 2009-11-06 14:04:52

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Is the acct locked?

# usermod -U <username>

should unlock the acct if it's locked.


Knute

Offline

#6 2009-11-06 15:20:36

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Please, post /etc/passwd file. It should explain everything.

Offline

#7 2009-11-06 16:14:44

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

usermod -U luser does nothing

/etc/passwd:

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
policykit:x:102:101:PolicyKit:/:/sbin/nologin
hal:x:82:82:HAL daemon:/:/bin/false
luser:x:1000:100:a,4117,123,321,1:/home/luser:/bin/bash
avahi:x:84:84:Avahi daemon:/:/bin/false
fatso:x:1001:1001::/home/fatso:/bin/bash
deluge:x:125:125:Deluge user:/srv/deluge:/bin/false

The "a,4117,123,321,1" looks odd. What does the "a" do?

**EDIT**
removing "a," didn't help.

Last edited by kanonmat (2009-11-06 16:35:46)


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#8 2009-11-06 17:39:20

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] one user cannot login (segfault, .inputrc)

The fifth fields is a free field with human-readable information. So its value doesn't matter. As the passwd field looks ok, the problem might lie in /etc/shadow.

Offline

#9 2009-11-06 18:10:45

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Ramses de Norre wrote:

The fifth fields is a free field with human-readable information. So its value doesn't matter. As the passwd field looks ok, the problem might lie in /etc/shadow.

You mean the fourth field?  Also, don't post your /etc/shadow without obscuring the password hashes.

The problem could be in ~luser/.bashrc or ~luser/.bash_profile too.  Try changing luser's shell (to dash, for example).

Offline

#10 2009-11-06 18:45:51

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

I could login with dash as a shell. When I try "bash" at the prompt, I get "Segment violation". At my last session I edited .bashrc to have nestled ifs to see if I had pacman-color and then set aliases and other stuff. Anyway, the other user could login with it. I have updated bash since the first login failure. (4.0.033-1 -> 4.0.035-1) I'm still unsure about my usermod try.

Just for fun, this is /etc/shadow:

root:$1blablaKm1TOchangedstuffherey5qG.:14234::::::
bin:x:0::::::
daemon:x:0::::::
mail:x:0::::::
ftp:x:0::::::
http:x:0::::::
nobody:x:0::::::
luser:$1$otherhasht8XVtt$ŋħ←þebEu7Of.:14553:0:99999:7:::
hal:!:14363:0:99999:7:::
dbus:!:14234:0:99999:7::1:
avahi:!:14364:0:99999:7::1:
policykit:!:14363:0:99999:7:::
fatso:orsomethinglikethisTCTTE9km@£€P1:14442:0:99999:7:::
deluge:!:14433:0:99999:7:::

User fatso doesn't have a .bash_profile, but removing it for luser does nothing.
.bash_profile:

. $HOME/.bashrc

Last edited by kanonmat (2009-11-06 18:55:23)


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#11 2009-11-06 18:55:54

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] one user cannot login (segfault, .inputrc)

tavianator wrote:
Ramses de Norre wrote:

The fifth fields is a free field with human-readable information. So its value doesn't matter. As the passwd field looks ok, the problem might lie in /etc/shadow.

You mean the fourth field?

I counted the user name as a field too.

@kanonmat: if you can login with a different shell, the problem lies not in general system files.

Offline

#12 2009-11-06 19:09:30

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Ack, I can't count. ><

Offline

#13 2009-11-06 21:13:37

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Try "pwck" and "grpck" as root to see if they throw up any problems and post the results.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#14 2009-11-06 22:15:06

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] one user cannot login (segfault, .inputrc)

kanonmat wrote:

I could login with dash as a shell. When I try "bash" at the prompt, I get "Segment violation".

Weird, probably a bug in bash.  Doesn't mean your setup isn't wrong though.  Try "bash --noprofile --norc" from dash and see if you still get a segfault.

Offline

#15 2009-11-06 22:46:07

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

So, bash segfaults when I try to start it from zsh for one user, but it doesn't segfault for other users. What's the next step? gdb? I'm not sure how to use it.

pwck gives nothing
grpck gives 22 lines like the following for all groups without x in "pw" field

group uucp has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'

I put little x:es in all those places. No login to bash.


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#16 2009-11-06 22:52:08

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] one user cannot login (segfault, .inputrc)

kanonmat wrote:

So, bash segfaults when I try to start it from zsh for one user, but it doesn't segfault for other users. What's the next step? gdb? I'm not sure how to use it.

"strace bash" or "valgrind bash" may give you more info.  GDB is used like this:

$ gdb bash
(gdb) run
Program recieved signal SIGSEGV.
(gdb) bt
<backtrace here>

Offline

#17 2009-11-07 01:06:23

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

(I installed zsh, it seems more useable.) I copied .bashrc from /etc/skel. gdb segfaults on dash and zsh. strace generates copious amounts of lines, idk, much more than 10000 and it wont stop. valgrind is better with the output, but wont stop. Both of them uses too much resources and I cant ctrl-c or killall them. I didn't want to cook my laptop, so I rebooted. Is there a way to limit valgrind or strace? Just let them run 20 secs or output 500 lines?

I couldn't find anything recent with "bash segfault" on google.


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#18 2009-11-07 22:10:27

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: [SOLVED] one user cannot login (segfault, .inputrc)

Solved!
It was recursion
~/.inputrc had the line "$include ~/.inputrc" in it and kept including itself.  big_smile

I had copied it from /etc/inputrc and put stuff in there like:

"ŋ":"| grep -i "

to put "| grep -i " on the commandline when I press altgr-g.
Well, I learned some zsh and conf files along the way.


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

Board footer

Powered by FluxBB