image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old June 11th, 2002, 04:40 AM
bbloke's Avatar
Registered User
 
Join Date: Jun 2002
Location: UK
Posts: 1,502
Thanks: 1
Thanked 25 Times in 22 Posts
bbloke has a spectacular aura aboutbbloke has a spectacular aura about
Exclamation Alarming Terminal app behavior (10.1.5)

I recently sent this post to the Apple Discussions pages because I am somewhat concerned by the Terminal's behavior under 10.1.5. I'm sure it did not used to do this and I want to see if people on this forum can duplicate my findings and find a solution!


"I have noticed something a little worrying when using the Terminal under 10.1.5, where users are not being logged off properly. To duplicate what I have observed, try the following:

1) Open the Terminal app

2) Type "w" (and Return) to show a list of those logged on. You will see at least two users, one using the console ("co") and one using the Terminal window you have open (eg ttyp1 is "p1").

3) Now open a new Terminal window, so that you have two open. You will see the terminal session labeled in the title bar (eg "(ttyp2)").

4) Type "w" again in the first Terminal window and see at least three sessions now (one console, two terminals).

5) Log out of the second Terminal window (type "logout" or "exit" or "control-d")

6) Go back to the first terminal window and type "w" again. You will see the second Terminal window was not logged out properly...

My workaround for this was to run XDarwin and open as many xterm windows as I had Terminal Windows open, and logging out from each xterm properly logs me out for each one...

So, is the Terminal app not properly logging users out any more?!"
Reply With Quote
  #2  
Old June 11th, 2002, 11:31 PM
kilowatt's Avatar
mach-o mach-o man
 
Join Date: Mar 2001
Location: irc.lfnet.net #kilonet
Posts: 984
Thanks: 0
Thanked 0 Times in 0 Posts
kilowatt is on a distinguished road
what shell?

I'm using the bash shell, and it seems to behave differently.

When I open up many terminals (via terminal.app), using `w`, `who`, or `finger` produces the same result - one user logged in via the console, ttyp0.

My guess is that your defauly shell is running as a login shell instead of just a shell.
__________________
irc.lfnet.net #kilonet -+=join in=+-
Quote:
...the belief that the rights of man come not from the generosity of the state but the hand of God...
PEBKAC - Problem Exists Between Keyboard And Chair. --who said it first?
Audio Engineer - ProTools and Logic Pro Certified.
FCC Licensed RF Technician
Reply With Quote
  #3  
Old June 12th, 2002, 02:45 PM
Registered User
 
Join Date: May 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fperez is on a distinguished road
I know, I know!!

I noticed this problem months ago. I started a thread in this forum, but nobody seem to care about it. It is rather odd to type w and see users that are not longer logged in. I first noticed it when root appeared to be in the third terminal (tty3 or p3?).

This was so annoying that I did a clean install of OS X, and not, it didn't solve anything. My only question is if this is a problem related to X 10.1 or is even older?

I did some reading, and the problem seems to be that some file keeps the reccord of who is logged in and where...Terminal correctly adds an entry to this file (I think is called utmp), but does not remove the entry when users logout.

My real worry is any security problem that might arise due to this behaviour.

any comments will be appreciated


drizzt
Reply With Quote
  #4  
Old June 12th, 2002, 05:12 PM
bbloke's Avatar
Registered User
 
Join Date: Jun 2002
Location: UK
Posts: 1,502
Thanks: 1
Thanked 25 Times in 22 Posts
bbloke has a spectacular aura aboutbbloke has a spectacular aura about
Further info...

Yup, kilowatt, it looks like it was a login shell. I did switch to using tcsh at one point, but I must have reverted to the login shell either on purpose at some point or else an upgrade must have changed my default settings. Either way, I've now switched back to using tcsh, which is what I am used to in the office too. Now the behavior is similar to what you report using bash.

When opening new Terminal windows, typing "w" always shows the same number of sessions: one. There always seems to be a session on the console. I should perhaps try logging in as a non-administrator and see if that affects things. By comparison, running XDarwin, opening xterms, and then using "w" does show separate sessions (on ttypx, where x is a number) rather than using the console! So the Terminal app is behaving differently from a terminal window using the X Window server.

In case people are not aware (I've only been using Unix for about a year and a half), the "last" command can be used to show previous logins and accesses the /var/log/wtmp file.

fperez, I'm sorry if I missed your earlier post. If it's any consolation, I too was beginning to wonder if no one was interested in this thread (until today!) and my original post on Apple's Discussion pages still has not had a reply. My concern, like yours, is whether or not this is a security issue. I have set feedback to Apple, but if others are concerned I suggest they do likewise.

Thanks for the feedback and I'd like to keep this thread going, as we might be looking at something which is potentially important...
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
autostart terminal app on login neo36 Unix & X11 10 November 25th, 2002 12:10 AM
how to open a app as root with terminal taewon Mac OS X System & Mac Software 14 April 14th, 2002 02:20 AM
slow terminal app prefect Apple News, Rumors & Discussion 1 April 4th, 2002 01:10 AM
terminal app for USB serial port tyc Mac OS X System & Mac Software 4 March 5th, 2002 11:40 PM
Terminal app | root password silversurfer30 Mac OS X System & Mac Software 1 November 18th, 2001 08:55 PM


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.