Try to find "who" login to the QNX 6.1 system

Where is the “who” utility? I can’t find it in QNX 6.1. The www.qnx.com
search shows it is there in QNX 4.0.


Is there any security log to audit who/when login occur and from which IP?

-Tony

apps <apps@qnx.com> wrote:

The who utility has been deprecated.

by what?

Hello Tony,


Tony Lee wrote:

Where is the “who” utility? I can’t find it in QNX 6.1. The > www.qnx.com
search shows it is there in QNX 4.0.

The who utility has been deprecated.

Is there any security log to audit who/when login occur and from which IP?

Take a look at the docs for the su utility. This tells about the
/etc/acclog file that can be used to obtain accounting information. This
may give you some of what you’re looking for

Regards,
Dave B.

-Tony

There are strong push from top and bottom to linux.
Guess what, I don’t blame them.

-Tony

“apps” <apps@qnx.com> wrote in message news:3C5AE5A3.3050602@qnx.com

Hello Tony,


Tony Lee wrote:

Where is the “who” utility? I can’t find it in QNX 6.1. The
www.qnx.com
search shows it is there in QNX 4.0.



The who utility has been deprecated.


Is there any security log to audit who/when login occur and from which
IP?


Take a look at the docs for the su utility. This tells about the
/etc/acclog file that can be used to obtain accounting information. This
may give you some of what you’re looking for

Regards,
Dave B.


-Tony

\

Frank Liu <liug@mama.indstate.edu> wrote:

apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild

Tony Lee <tl_168168@hotmail.com> wrote:

There are strong push from top and bottom to linux.
Guess what, I don’t blame them.

I’m amazed that “who” is deprecated. This is possibly the stupidest thing
to deprecate. What are they going to deprecate next, “grep”? Soon we’ll
all just be using a GUI and clicking away, just like windoze :slight_smile:

Also, the docs for the “su” utility make absolutely no mention of /etc/acclog…
It only talks about /etc/passwd, login, and passwd.

Can we have our “who” utility back?

On a related note, has “whois” also been deprecated? I don’t have it on my 6.1
system. It’s almost as useful as “who”, so it would stand to reason that it too
would go away, wouldn’t it? :slight_smile:

Cheers,
-RK

-Tony

“apps” <> apps@qnx.com> > wrote in message news:> 3C5AE5A3.3050602@qnx.com> …
Hello Tony,


Tony Lee wrote:

Where is the “who” utility? I can’t find it in QNX 6.1. The
www.qnx.com
search shows it is there in QNX 4.0.



The who utility has been deprecated.


Is there any security log to audit who/when login occur and from which
IP?


Take a look at the docs for the su utility. This tells about the
/etc/acclog file that can be used to obtain accounting information. This
may give you some of what you’re looking for

Regards,
Dave B.


-Tony


\


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

I just ported the BSD version…it’s only about a hundred lines and it took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get it
on our shiplist for 6.2.

Cheers,

Kris

“kirk” <kirussel@NOSPAMrogers.com> wrote in message
news:a3esfk$kr9$1@inn.qnx.com

Frank Liu <> liug@mama.indstate.edu> > wrote:
apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild

See my response to Kirk above. Our login already keeps a utmp and wtmp so
it’s only a matter of printing the information. Actually, that’s a bit of a
fudge…after you do a `touch /var/log/utmp ; touch /var/log/wtmp’ it keeps
them…:wink: Now the only issue that remains is getting pterms to update
utmp/wtmp as well as login…if you’re only logged into photon I don’t
believe you will show up.

cheers,

Kris

“Robert Krten” <nospam91@parse.com> wrote in message
news:a3ev03$mu5$1@inn.qnx.com

Tony Lee <> tl_168168@hotmail.com> > wrote:
There are strong push from top and bottom to linux.
Guess what, I don’t blame them.

I’m amazed that “who” is deprecated. This is possibly the stupidest thing
to deprecate. What are they going to deprecate next, “grep”? Soon we’ll
all just be using a GUI and clicking away, just like windoze > :slight_smile:

Also, the docs for the “su” utility make absolutely no mention of
/etc/acclog…
It only talks about /etc/passwd, login, and passwd.

Can we have our “who” utility back?

On a related note, has “whois” also been deprecated? I don’t have it on
my 6.1
system. It’s almost as useful as “who”, so it would stand to reason that
it too
would go away, wouldn’t it? > :slight_smile:

Cheers,
-RK

-Tony

“apps” <> apps@qnx.com> > wrote in message news:> 3C5AE5A3.3050602@qnx.com> …
Hello Tony,


Tony Lee wrote:

Where is the “who” utility? I can’t find it in QNX 6.1. The
www.qnx.com
search shows it is there in QNX 4.0.



The who utility has been deprecated.


Is there any security log to audit who/when login occur and from
which
IP?


Take a look at the docs for the su utility. This tells about the
/etc/acclog file that can be used to obtain accounting information.
This
may give you some of what you’re looking for

Regards,
Dave B.


-Tony







\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.

Kris Warkentin <kewarken@qnx.com> wrote:

I just ported the BSD version…it’s only about a hundred lines and it took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get it
on our shiplist for 6.2.

Great! Can you get “whois” done as well?

Thanks,
-RK

Cheers,

Kris

“kirk” <> kirussel@NOSPAMrogers.com> > wrote in message
news:a3esfk$kr9$> 1@inn.qnx.com> …
Frank Liu <> liug@mama.indstate.edu> > wrote:
apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

This is about what I would have expected it to take.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Kris Warkentin” <kewarken@qnx.com> wrote in message
news:a3fanp$acc$1@nntp.qnx.com

I just ported the BSD version…it’s only about a hundred lines and it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get it
on our shiplist for 6.2.

It takes more. For ‘who’ to work everything in the system must maintain
utmp/wtmp properly. In Unix that starts with ‘init’ which once was part of
RTP but then was replaced by QNX4-style ‘tinit’ which is not nearly as
useful. Then login, su, phlogin. And then ‘who’ is also supposed to show
what terminal you’re on and what you’re running… Bottom line, it has to be
pervasive to be useful. For example in Solaris my .profile takes care of
automatically setting DISPLAY to whatever host I am telnetting from. Using
‘who’ :wink:

  • igor

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:a3hauu$coa$1@inn.qnx.com

This is about what I would have expected it to take.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3fanp$acc$> 1@nntp.qnx.com> …
I just ported the BSD version…it’s only about a hundred lines and it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get
it
on our shiplist for 6.2.

Igor Kovalenko <kovalenko@attbi.com> wrote:

pervasive to be useful. For example in Solaris my .profile takes care of
automatically setting DISPLAY to whatever host I am telnetting from. Using
‘who’ > :wink:

on qnx, my sshd sets DISPLAY automatically without the need of .profile
or who :slight_smile:

Try ‘id <username’

cheers,

Kris

“Robert Krten” <nospam91@parse.com> wrote in message
news:a3fe05$3i9$1@inn.qnx.com

Kris Warkentin <> kewarken@qnx.com> > wrote:
I just ported the BSD version…it’s only about a hundred lines and it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get
it
on our shiplist for 6.2.

Great! Can you get “whois” done as well?

Thanks,
-RK

Cheers,

Kris

“kirk” <> kirussel@NOSPAMrogers.com> > wrote in message
news:a3esfk$kr9$> 1@inn.qnx.com> …
Frank Liu <> liug@mama.indstate.edu> > wrote:
apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild


\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.

Our login maintains /var/log/utmp and wtmp if you’ve touched them. I
believe we also do something with lastlog as well but I’ll have to look into
it. Note that pterms don’t seem to do the right thing so I may have to
monkey around to get console users to show up properly.

Kris

“Igor Kovalenko” <kovalenko@attbi.com> wrote in message
news:a3hbj7$d91$1@inn.qnx.com

It takes more. For ‘who’ to work everything in the system must maintain
utmp/wtmp properly. In Unix that starts with ‘init’ which once was part of
RTP but then was replaced by QNX4-style ‘tinit’ which is not nearly as
useful. Then login, su, phlogin. And then ‘who’ is also supposed to show
what terminal you’re on and what you’re running… Bottom line, it has to
be
pervasive to be useful. For example in Solaris my .profile takes care of
automatically setting DISPLAY to whatever host I am telnetting from. Using
‘who’ > :wink:

  • igor

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:a3hauu$coa$> 1@inn.qnx.com> …
This is about what I would have expected it to take.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3fanp$acc$> 1@nntp.qnx.com> …
I just ported the BSD version…it’s only about a hundred lines and it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can
get
it
on our shiplist for 6.2.
\

Kris Warkentin <kewarken@qnx.com> wrote:

Try ‘id <username’

Sorry, not even close (first, there shouldn’t be a “<”
character, unless you meant “” as a meta-variable,
and second of all, this is not like anything that “whois” does)…

:slight_smile:

Here’s the output of “whois qnx.com” for example:

Registrant:
QNX Software Systems (QNX-DOM)
175 Terence Matthews Crescent
Kanata, Ont K2M 1W8
CA

Domain Name: QNX.COM

Administrative Contact, Technical Contact:
Manager, IS (RNVEBQDCJI) ismanager@QNX.COM
QNX Software Systems Ltd.
175 Terence Matthews Crescent
Kanata
ON
K2M 1W8
CA
613-591-0931 613-591-3579
Billing Contact:
Billing, Internet (ISUFEAAJHI) inetbilling@QNX.COM
QNX Software Systems Ltd.
175 Terence Matthews Crescent
Kanata
ON
K2M 1W8
CA
613-591-0931 613-591-3579

Record last updated on 21-Sep-2001.
Record expires on 06-Aug-2003.
Record created on 05-Aug-1992.
Database last updated on 2-Feb-2002 01:32:00 EST.

Domain servers in listed order:

NS.QNX.COM 209.226.137.1
NS4.BELLGLOBAL.COM 198.235.216.131
NS3.BELLGLOBAL.COM 198.235.216.130

Cheers,
-RK

cheers,

Kris

“Robert Krten” <> nospam91@parse.com> > wrote in message
news:a3fe05$3i9$> 1@inn.qnx.com> …
Kris Warkentin <> kewarken@qnx.com> > wrote:
I just ported the BSD version…it’s only about a hundred lines and it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can get
it
on our shiplist for 6.2.

Great! Can you get “whois” done as well?

Thanks,
-RK

Cheers,

Kris

“kirk” <> kirussel@NOSPAMrogers.com> > wrote in message
news:a3esfk$kr9$> 1@inn.qnx.com> …
Frank Liu <> liug@mama.indstate.edu> > wrote:
apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild


\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

oops…I meant 'id ’ as in metavariable. And you’re right…I’m
not sure what I was thinking of…it made sense at the time…:stuck_out_tongue: Yes,
you’re right…a whois command should probably exist on our boxes. I
wouldn’t expect it does much more than a dns query and a few other normal
things. Probably compiles right out of the box.

cheers,

Kris
“Robert Krten” <nospam91@parse.com> wrote in message
news:a3hidi$h99$1@inn.qnx.com

Kris Warkentin <> kewarken@qnx.com> > wrote:
Try ‘id <username’

Sorry, not even close (first, there shouldn’t be a “<”
character, unless you meant “” as a meta-variable,
and second of all, this is not like anything that “whois” does)…

:slight_smile:

Here’s the output of “whois qnx.com” for example:

Registrant:
QNX Software Systems (QNX-DOM)
175 Terence Matthews Crescent
Kanata, Ont K2M 1W8
CA

Domain Name: QNX.COM

Administrative Contact, Technical Contact:
Manager, IS (RNVEBQDCJI) > ismanager@QNX.COM
QNX Software Systems Ltd.
175 Terence Matthews Crescent
Kanata
ON
K2M 1W8
CA
613-591-0931 613-591-3579
Billing Contact:
Billing, Internet (ISUFEAAJHI) > inetbilling@QNX.COM
QNX Software Systems Ltd.
175 Terence Matthews Crescent
Kanata
ON
K2M 1W8
CA
613-591-0931 613-591-3579

Record last updated on 21-Sep-2001.
Record expires on 06-Aug-2003.
Record created on 05-Aug-1992.
Database last updated on 2-Feb-2002 01:32:00 EST.

Domain servers in listed order:

NS.QNX.COM 209.226.137.1
NS4.BELLGLOBAL.COM 198.235.216.131
NS3.BELLGLOBAL.COM 198.235.216.130

Cheers,
-RK

cheers,

Kris

“Robert Krten” <> nospam91@parse.com> > wrote in message
news:a3fe05$3i9$> 1@inn.qnx.com> …
Kris Warkentin <> kewarken@qnx.com> > wrote:
I just ported the BSD version…it’s only about a hundred lines and
it
took
all of 5 minutes. I’ll put it into our CVS Monday and see if I can
get
it
on our shiplist for 6.2.

Great! Can you get “whois” done as well?

Thanks,
-RK

Cheers,

Kris

“kirk” <> kirussel@NOSPAMrogers.com> > wrote in message
news:a3esfk$kr9$> 1@inn.qnx.com> …
Frank Liu <> liug@mama.indstate.edu> > wrote:
apps <> apps@qnx.com> > wrote:
The who utility has been deprecated.

by what?

Considering that “who” part of the posix util suite…


Kirk Russell Bridlewood Software Testers Guild


\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.