Joshua Murphy wrote:
> On Fri, Feb 13, 2009 at 3:05 AM, Dale <rdalek1...@gmail.com> wrote:
>   
>> Hi folks,
>>
>> I from time to time will go to a console and do a rc single to go to
>> single user mode.  I have noticed something weird when I go back to rc
>> default tho.  On the #1 console, it acts and looks like I am logged out
>> but when I type in the user name root, it acts like it is a command.
>> Same with the password.  However, if I just type in a command, it spits
>> that back out too.  It doesn't seem to like a login or a command.
>>
>> It did this a bit ago.  I just typed in junk and let it reach the bad
>> login limit and reset the console.  It then gave me a login and let me
>> do a legitimate login.  It cleared the screen which is what is in
>> .bash_login so I know I am logged in.
>>
>> This is just sort of weird to me.  The screen when it gets through
>> starting services looks just like it does when I reboot.  I see the last
>> few services at the top then my login prompt at the bottom.  Everything
>> looks normal but it's not.  What can I check?  Is this normal?  When I
>> type in rc default should something reset tty1 so that a new login is
>> required?  It acts like it is still logged in as root which could be a
>> security problem for some.  Just curious really.
>>
>> Dale
>>
>> :-)  :-)
>>     
>
> Sounds like it's not closing out of the existing shell on the terminal
> but is till starting a login process on top of it. The lazy fix is to,
> when you go single user, throw a " & logout" on the end of the command
> to make sure the shell closes out.
>
> If you want to poke around and see, for certain, that it is doing what
> I'd guess it is.. change your inittab and add another login in single
> user mode on tty2, log in, and check "w" for an active session on
> another tty.
>
>   

I wasn't sure how to add another login so I tried this.  When I went
from single back to default, I typed in "rc default & exit" to see what
that did.  It did like I think it should do with that.  It took me back
to a login and none of the looking like one thing but being another.

Shouldn't something do that automatically tho?  On mine, it switches to
the GUI when I go back to default.  I'm just curious if this could be a
security issue for someone else or is this just me?

Dale

:-)  :-) 

Reply via email to