console login problem (ttymon)

console login problem (ttymon)

Post by nasi » Sat, 20 May 2006 03:38:58



I am getting following message while trying to connect through console
through console switch to a server
--------
server1 console login: root
Warning -- ttymon cannot allocate controlling tty on "/dev/console",
           there may be another session active on this port.

It is a security violation to access systems to which you are not
authorized.
server1 console login:
--------

after connecting thruogh SSH, I see the following process perhaps
holding the console

server1:/# ps -ef|grep -i console |grep -v grep
    root  3285     1  0 13:51:16 console  0:00 /usr/lib/saf/ttymon -g
-h -p server1 console login:  -T sun -d /dev/console -l

What to do in order to be able to connect to the box through console
(switch)?

thanks in advance.

P.S. It is solaris 8

 
 
 

console login problem (ttymon)

Post by nasi » Sat, 20 May 2006 22:42:14


can anybody help on this please?

thanks.


> I am getting following message while trying to connect through console
> through console switch to a server
> --------
> server1 console login: root
> Warning -- ttymon cannot allocate controlling tty on "/dev/console",
>            there may be another session active on this port.

> It is a security violation to access systems to which you are not
> authorized.
> server1 console login:
> --------

> after connecting thruogh SSH, I see the following process perhaps
> holding the console

> server1:/# ps -ef|grep -i console |grep -v grep
>     root  3285     1  0 13:51:16 console  0:00 /usr/lib/saf/ttymon -g
> -h -p server1 console login:  -T sun -d /dev/console -l

> What to do in order to be able to connect to the box through console
> (switch)?

> thanks in advance.

> P.S. It is solaris 8


 
 
 

console login problem (ttymon)

Post by Andrew Gabri » Sun, 21 May 2006 04:13:57




Quote:> I am getting following message while trying to connect through console
> through console switch to a server
> --------
> server1 console login: root
> Warning -- ttymon cannot allocate controlling tty on "/dev/console",
>            there may be another session active on this port.

> It is a security violation to access systems to which you are not
> authorized.
> server1 console login:
> --------

> after connecting thruogh SSH, I see the following process perhaps
> holding the console

> server1:/# ps -ef|grep -i console |grep -v grep
>     root  3285     1  0 13:51:16 console  0:00 /usr/lib/saf/ttymon -g
> -h -p server1 console login:  -T sun -d /dev/console -l

That's supposed to be there.

Try using fuser to see which processes are using the console.
E.g. on my system (logged in to the console and running X)...

# fuser /dev/console
/dev/console:      682o     626o     609o     340o
# ps -f -p 682,626,609,340
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root   340     7   0   Apr 19 console     0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T sun-color -m ldterm,ttcomp
    root   609     1   0   Apr 19 ?           0:00 /usr/lib/dmi/dmispd
    root   626   578   0   Apr 19 ??          0:00 /usr/openwin/bin/fbconsole -d :0
  andrew   682   665   0   Apr 19 ?           0:00 /usr/openwin/bin/fbconsole
#

Hum, looks like there's a bug in dmispd as it shouldn't still
be connected to the console, but if you see something else,
that that's likely your culprit.

--
Andrew Gabriel

 
 
 

console login problem (ttymon)

Post by nasi » Sun, 21 May 2006 05:32:24


on my system it is as below, please suggest should i kill any of those?
what will be the consequences?

server1:/# fuser /dev/console
/dev/console:     3285oy     546o     542o     350o
    root  3285     1  0   May 18 console  0:00 /usr/lib/saf/ttymon -g
-h -p server1 console login:  -T sun -d /dev/console -l

server1:/# ps -ef|grep 546
    root   546     1  2   Apr 30 ?       964:04 /usr/sbin/ssmon

server1:/# ps -ef|grep 542
    root   542     1  0   Apr 30 ?       185:34 /usr/sbin/ssserver

server1:/# ps -ef|grep 350
    root   350     1  0   Apr 30 ?        0:04 /opt/VRTSob/bin/vxsvc -r
/opt/VRTSob/config/Registry -e

thanks,




> > I am getting following message while trying to connect through console
> > through console switch to a server
> > --------
> > server1 console login: root
> > Warning -- ttymon cannot allocate controlling tty on "/dev/console",
> >            there may be another session active on this port.

> > It is a security violation to access systems to which you are not
> > authorized.
> > server1 console login:
> > --------

> > after connecting thruogh SSH, I see the following process perhaps
> > holding the console

> > server1:/# ps -ef|grep -i console |grep -v grep
> >     root  3285     1  0 13:51:16 console  0:00 /usr/lib/saf/ttymon -g
> > -h -p server1 console login:  -T sun -d /dev/console -l

> That's supposed to be there.

> Try using fuser to see which processes are using the console.
> E.g. on my system (logged in to the console and running X)...

> # fuser /dev/console
> /dev/console:      682o     626o     609o     340o
> # ps -f -p 682,626,609,340
>      UID   PID  PPID   C    STIME TTY         TIME CMD
>     root   340     7   0   Apr 19 console     0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T sun-color -m ldterm,ttcomp
>     root   609     1   0   Apr 19 ?           0:00 /usr/lib/dmi/dmispd
>     root   626   578   0   Apr 19 ??          0:00 /usr/openwin/bin/fbconsole -d :0
>   andrew   682   665   0   Apr 19 ?           0:00 /usr/openwin/bin/fbconsole
> #

> Hum, looks like there's a bug in dmispd as it shouldn't still
> be connected to the console, but if you see something else,
> that that's likely your culprit.

> --
> Andrew Gabriel

 
 
 

console login problem (ttymon)

Post by Andrew Gabri » Sun, 21 May 2006 20:22:53




Quote:> on my system it is as below, please suggest should i kill any of those?
> what will be the consequences?

> server1:/# fuser /dev/console
> /dev/console:     3285oy     546o     542o     350o
>     root  3285     1  0   May 18 console  0:00 /usr/lib/saf/ttymon -g
> -h -p server1 console login:  -T sun -d /dev/console -l

I'm not sure what's going wrong, but the 'y' in the fuser output
indicates ttymon is the process which is the controlling process,
and at least on a couple of systems I checked, it shouldn't be
when it's sitting at the login prompt. The other strange thing
is that the process number of ttymon is rather high for something
which is started at boot time. This might be because it has been
restarting itself due to this problem, or it might be because
someone has started it up in a strange way, which might also be
the cause of the problem.

Try killing it, and I think SMF will restart it automatically.
Check to see if the new one has the 'y' flag in fuser output.
If it doesn't restart, run svcs -l svc:/system/console-login:default
and post the output. (I'm assuming Solaris 10 here.)

--
Andrew Gabriel

 
 
 

console login problem (ttymon)

Post by nasi » Thu, 25 May 2006 02:16:18


Strange enough, the ttymon process is gone by itself and I am able to
login through console now. I check the inittab and it has the following
entry:

co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login:
" -T sun -d /dev/console -l console -m ldterm,ttcompat

but again if it is there, i wonder why it did not respawn ttymon
process if its died. Thanks anyways.




> > on my system it is as below, please suggest should i kill any of those?
> > what will be the consequences?

> > server1:/# fuser /dev/console
> > /dev/console:     3285oy     546o     542o     350o
> >     root  3285     1  0   May 18 console  0:00 /usr/lib/saf/ttymon -g
> > -h -p server1 console login:  -T sun -d /dev/console -l

> I'm not sure what's going wrong, but the 'y' in the fuser output
> indicates ttymon is the process which is the controlling process,
> and at least on a couple of systems I checked, it shouldn't be
> when it's sitting at the login prompt. The other strange thing
> is that the process number of ttymon is rather high for something
> which is started at boot time. This might be because it has been
> restarting itself due to this problem, or it might be because
> someone has started it up in a strange way, which might also be
> the cause of the problem.

> Try killing it, and I think SMF will restart it automatically.
> Check to see if the new one has the 'y' flag in fuser output.
> If it doesn't restart, run svcs -l svc:/system/console-login:default
> and post the output. (I'm assuming Solaris 10 here.)

> --
> Andrew Gabriel

 
 
 

1. ttymon error:ttymon cannot allocate controlling tty on /dev/console

I can't at the moment make a console login to my Sun Solaris 2.7 box,
but only login remotely by way of ssh or rlogin.
    If I try to make a console login, it gives the following messages:

        Warning -- ttymon cannot allocate controlling tty on
"/dev/console". There may be another session active on this port.

Have any one got any ideas for the solution to this problem?

--
S?ren V. Carlsen (Teknisk ansvarlig for den elektroniske
pligtaflevering)
Digitaliserings- og Webafdelingen (DWA)
Det Kongelige Bibliotek
Postboks 2149
DK-1016 K?benhavn K
Tlf: 33 47 48 41

Hjemme-adresse (Home):
============
S?ren V. Carlsen
Gammel Kongevej 142, 1. tv
DK-1850 Frederiksberg C
tlf: 33 31 45 49

##################################################################
non omnia possumus omnes
Macrobius Saturnalia VI, 1, 35
##################################################################

2. Netscape runs but whacks my X-terms?

3. sol2.6 - ttymon not allowing console logins

4. Matrox G200 and SciTech

5. Console ttymon problem.

6. Fingering a Novell network under UNIX

7. ttymon cannot be respawned for /dev/console

8. Software Listing

9. Solaris 2.3 console ttymon not getting started

10. multiple ttymons on console?

11. switching console from ttya to monitor/mouse -- ttymon dying

12. ttymon on console, Sunray server

13. dropping the modem connection and ttymon/login question