You are not logged in.

#1 2012-04-06 07:07:30

freebullets
Member
Registered: 2011-11-10
Posts: 31

Can't log in locally

I can't log in locally. After logging in, it flashes back to the login prompt. If given a wrong password, it will pause for a couple seconds then give the standard "Login incorrect" response.

/etc/inittab: http://pastie.org/3737435

auth.log:

Apr  6 03:09:01 archserver /usr/sbin/crond[1122]: pam_unix(crond:session): session opened for user root by (uid=0)
Apr  6 03:09:01 archserver /USR/SBIN/CROND[1122]: pam_unix(crond:session): session closed for user root

Last edited by freebullets (2012-04-18 19:40:05)

Offline

#2 2012-04-06 10:12:29

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Can't log in locally

Try commenting out "x:5:respawn:/usr/bin/xdm -nodaemon" like so:

...

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
...

I personally don't use a login manager but according to the XDM wiki, the ~/.xsession file needs to be executable.

$ chmod 744 .xsession

There's also this: https://wiki.archlinux.org/index.php/XD … fter_login


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-04-06 11:47:55

freebullets
Member
Registered: 2011-11-10
Posts: 31

Re: Can't log in locally

DSpider wrote:

Try commenting out "x:5:respawn:/usr/bin/xdm -nodaemon" like so:

...

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
...

I personally don't use a login manager but according to the XDM wiki, the ~/.xsession file needs to be executable.

$ chmod 744 .xsession

There's also this: https://wiki.archlinux.org/index.php/XD … fter_login

Sorry, I don't use XDM. inittab comes like that by default. The server's always in runlevel 3.

Offline

#4 2012-04-06 14:51:42

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Can't log in locally

It would be helpful to know which shell you use, if it automatically starts X and if so how you start X.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2012-04-06 15:04:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: Can't log in locally

Are you trying to log in as root as n X session?
How are you doing that?
May I respectfully suggest that running an X session as root is not the best practice?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2012-04-17 10:34:11

freebullets
Member
Registered: 2011-11-10
Posts: 31

Re: Can't log in locally

R00KIE wrote:

It would be helpful to know which shell you use, if it automatically starts X and if so how you start X.

ewaller wrote:

Are you trying to log in as root as n X session?
How are you doing that?
May I respectfully suggest that running an X session as root is not the best practice?

Sorry for any confusion. I'm not running X at all. I don't even have it installed. It's running the terminal only (runlevel 3).

Offline

#7 2012-04-17 11:10:22

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Can't log in locally

You can't even log in as root? If it were me, I would probably add another user, reboot, and then see if I still can't get in. Which is actually not a bad idea... Did you try that? Either use the "interactive mode" or you can run:

# useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,scanner -s /bin/bash new_user_name

Wait. You can only log in remotely? Via SSH?

Check /etc/shadow for a "!" in "root:!:12345...". Because that means the account is locked.

Last edited by DSpider (2012-04-17 11:15:24)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-04-18 19:45:29

freebullets
Member
Registered: 2011-11-10
Posts: 31

Re: Can't log in locally

DSpider wrote:

You can't even log in as root? If it were me, I would probably add another user, reboot, and then see if I still can't get in. Which is actually not a bad idea... Did you try that? Either use the "interactive mode" or you can run:

# useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,scanner -s /bin/bash new_user_name

Wait. You can only log in remotely? Via SSH?

Check /etc/shadow for a "!" in "root:!:12345...". Because that means the account is locked.

Tried adding a new user, and it did the same thing. Both the root and user accounts aren't disabled.

Offline

#9 2012-04-18 23:54:43

freebullets
Member
Registered: 2011-11-10
Posts: 31

Re: Can't log in locally

So I wanted to reboot it to see if that would fix it, so I made sure network and ssh were enabled in rc.conf. They were, so I went ahead and rebooted. It came back up, but it's not even responding to pings. I'm seriously considering just reinstalling.

Edit: I restarted couple times and it magically started working again.

Edit 2: Single-user mode works.

Edit 3: I reinstalled. Problem "fixed."

Last edited by freebullets (2012-04-20 07:41:58)

Offline

Board footer

Powered by FluxBB