Re: 'could not open session'



Hi,

On Fri, 07 Jul 2006 23:48:33 -0400, Tim Boyer wrote:

I've just done an upgrade from RHEL3 to 4, and have run into the strangest
thing.

I can't log in from the console. Every login attempt with the correct password
gives the message 'could not open session'.

I can ssh in, and enter a username and password. But from there, I can't su to
anybody - root, or another user. 'could not open session'.

Booting to single user mode gives me root, but as soon as I do a su - you
guessed it.

I can do a sudo.

I enabled telnet, just to see what happens:

login: tim
Password:

Permission denied
Connection closed by foreign host.


Permission problem, I think - but _where_??

Not sure whether it may help, but with RHEL4 you have SElinux enabled by
default (however only the targeted policy). But I have been
running into problems by restoring a RHEL4 system by no longer being able
to login, so I had to disable SElinux (and could login).

So try to disable SElinux at the boot prompt by adding a selinux=0 as a
kernel parameter.

hth, gk
.



Relevant Pages

  • Re: could not open session
    ... Every login attempt with the correct password ... gives the message 'could not open session'. ... login: tim ...
    (linux.redhat)
  • Re: Please! Doesnt anyone know a better way to do this?
    ... account, they need to automatically be directed to the page to enter data ... session variable on the Account page. ... I assume here that you're checking a database when the user attempts to ... When a new user attempts to login or clicks to register, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: nooB PhP login using MySQL
    ... This PC has MySQL and IIS configured and running. ... how do I prevent users from bypassing the login? ... create a random string and store in session on server, ... euphemism for md5) but now that there are secure ways, ...
    (comp.lang.php)
  • Re: nooB PhP login using MySQL
    ... This PC has MySQL and IIS configured and running. ... how do I prevent users from bypassing the login? ... create a random string and store in session on server, ... euphemism for md5) but now that there are secure ways, ...
    (comp.lang.php)
  • Re: why a session-based program behaves different on different computers
    ... But if you lose the session you lose ... now, pray-tell, HOW IS THE DATA LOST? ... IF THERE IS NO LOGIN, HOW DO YOU DETERMINE WHICH ROW IT IS? ... let's stick to the architecture for a moment then. ...
    (comp.lang.php)