No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 89: How much will the "!w" let others know about you?
Entered by carson on Tue Dec 28 23:51:46 UTC 1993:

        I ran a "!w" today at the "Ok: " prompt and noticed that instead of
seeing "trn" as  a "what" entry, I saw "trn (newsgroup deleted)". Is this a 
change, or have I just not noticed it before? I think it'd be kind of 
embarrassing if someone were to run the "!w" command while I'm over in 
"alt.sex.bestiality.barney", even though I'm most likely doing something
kosher. ("alt.sex.bestiality.barney" was a bogus example; we don't receive
it yet, and I'd probably stick to "alt.tv.barney" anyway, but I need an
example to make my point.) Thoughts?

43 responses total.



#1 of 43 by remmers on Wed Dec 29 00:46:15 1993:

There's been no change, but don't worry.   You probably invoked trn
by typing 'trn <name-of-newsgroup>'.  When you run a command, Unix
stores the command name *and any parameters you supply* in a table
which is accessed and displayed with the 'w' and 'ps' commands.

If you don't want people to know what newsgroup you're in, type
'trn' with no parameters and 'go' to the newsgroup once you're inside
trn.  That way, 'w' will just report that you're running trn.


#2 of 43 by carson on Wed Dec 29 03:11:18 1993:

Thanks. The person I had "!w"'d must have been pretty eager to get to that 
icular newsgroup... not me! I'll always use "!trn"!


#3 of 43 by robh on Wed Dec 29 07:10:57 1993:

Yep, it's amazing, some of the things you find out about people with
the w command.  Actually, I'm thankful - it was running a w command
and seeing someone using a program called "elm" that got me to start
using it.


#4 of 43 by vidar on Wed Dec 29 15:45:56 1993:

Ow.


#5 of 43 by ziggy on Wed Dec 29 16:26:44 1993:

I've been using elm for a while now, it's faster than Pine, yet better than
mail.


#6 of 43 by steve on Thu Dec 30 20:23:22 1993:

   Actually, if you want to discuss the implications of finding out
what people do/think, try looking at their .newsrc file.  I know of
a place in town that, once they were on the net, had some interesting
problems once it was known that some of the technical folk there read
"Those" kinds of newsgroups.


#7 of 43 by kentn on Thu Dec 30 21:34:10 1993:

There are ways of fooling finger and w and who...


#8 of 43 by vidar on Thu Dec 30 21:38:29 1993:

Yup.


#9 of 43 by carson on Fri Dec 31 09:01:07 1993:

re #7: how? is that something that the general user could learn? I already 
        avoid "!trn"-ing specific newsgroups, but I haven't checked my .newsrc
        file to see what it says, if anything. Tell us more, please.


#10 of 43 by remmers on Fri Dec 31 13:24:30 1993:

It's a file in your home directory that newsreader programs like trn use
to keep track of what newsgroups you subscribe to and what articles you've
read.  To view it, type "!cat .newsrc" at the next prompt.  It's normally
world-readable, so other users can look at a person's .newsrc to see what
newsgroups the person has been doing lately.

I don't think it will break anything if you depermit reading of .newsrc
by others.  To do this, type "!chmod og-r .newsrc".


#11 of 43 by davel on Fri Dec 31 13:38:30 1993:

I wouldn't expect it to break anything, but it's also possible that it won't
do any good.  .newsrc is renamed and recreated every time you run trn, and
the permissions may be reset when this happens - or it may use the permissions
of the old one; I've never tried it.  (But most likely it just uses your
umask when it creates the new one, I think.)

A possibly simpler solution would be to create a directory to which no one
else has rights, move your .newsrc and .oldnewsrc and your news dirs under
*that*, and go there every time you run trn.  (Or is there something else,
like some environment variable, that you'd need or want to set?)

Note that what people see if they use finger or w may not be what you expect
in any case, if what you run calls some other program.  People running mail
or elm or the bbs with an editor set can commonly be seen running vi or
whatever on some file or other in /tmp as they compose their material.

Kent, I also am interested in what you said in #7.  Say on, please.  Purely
abstract curiosity, of course.


#12 of 43 by gregc on Fri Dec 31 17:04:17 1993:

Or just change your umask to 077.


#13 of 43 by mju on Fri Dec 31 18:53:00 1993:

trn uses your home directory to store your .newsrc and .oldnewsrc
files by default, but this can be changed through a trn flag.
(No, I'm afraid I don't remember which one, and I don't have a
convenient way of looking at the manpage right now.)


#14 of 43 by ziggy on Fri Dec 31 23:29:14 1993:

I don't need to fool people I'm only in clean conferences.


#15 of 43 by vidar on Fri Dec 31 23:41:16 1993:

Define "clean" as you intend to mean it.


#16 of 43 by kentn on Sun Jan 2 19:34:50 1994:

This is not a foolproof method, but will distract the idly curious
and the Unix-inept (like most bosses and coworkers):
 
#include <stdio.h>
 
main()
{
        execl ("/usr/ucb/ftp", "vi test.tex", (char *) NULL);   
}
 
I'd like to know of a better way, if one exists.


#17 of 43 by carson on Sun Jan 2 19:52:25 1994:

This response has been erased.



#18 of 43 by remmers on Sun Jan 2 22:06:21 1994:

Re #16:  You're exploiting a special property of ftp there...


#19 of 43 by ziggy on Sun Jan 2 23:25:57 1994:

very good.


#20 of 43 by carson on Mon Jan 3 00:27:57 1994:

I count myself among the Unix-inept. If I go to a Unix prompt, do I enter the
contents of #16 on one line? Also, I've noticed that some people who shell
have their shell listed instead of what they're actually doing. Perhaps if
I moved to a shell other than Picospan...?


#21 of 43 by srw on Mon Jan 3 00:32:01 1994:

No carson, #16 was a c program. It needs to be compiled and loaded,
then it will be a program that does what he wants. kentn left those
juicy bits out.


#22 of 43 by popcorn on Mon Jan 3 04:08:25 1994:

This response has been erased.



#23 of 43 by kentn on Mon Jan 3 06:13:06 1994:

Yes, I left out a lot of juicy bits, but then I'm not the expert at this
and others around here are.  It works for programs other than ftp (I
use it for trn, for example).  You'll have to improvise.  I'd also like
to know how to read command line parameters into such a program, so
for example, one could use it to disguise sz usage.
   Anyway, you compile it with cc or gcc to get an executable (compile
everything between "#include" and "}" inclusive).  As shown in :16
it will look like you're using vi when you're actually using ftp, though
I hear it's possible to get more direct information on a job's status
than what w, who, or finger give, therefore this method can be defeated.
   A better place to discuss (or ask) about this sort of thing would
be in the jellyware conf.


#24 of 43 by davel on Mon Jan 3 12:05:25 1994:

It's not anything about ftp, it's using a property of the exec() family
of functions, that (many of them, anyway) allow you to give one name for
what's running and specify a different name as what actually is called.
Hm.  Cute idea, Kent.  I think that if you tried to set this up to be
called with a command line, then that command line (besides showing up
briefly even with w) would be available to ps.  Someone with more experience
with these functions in this environment may correct me.  You could work
around this by setting your umask to disallow read access to others, creating
a temp file with your command line, and making the program read its parameters
from that, I think.  But I'm not really sure what all might show up.


#25 of 43 by kentn on Thu Jan 6 14:32:52 1994:

Hmmm...I might try that, Dave.  Oh, and this certainly isn't my idea
or my programming...it was forwarded to me from a Usenet discussion last
year. 


#26 of 43 by other on Sat Mar 5 19:59:45 1994:

A prime example of what this item is about:

  2:58pm  up 1 day, 23:15,  9 users,  load average: 0.56, 0.30, 0.03
User     tty       login@  idle   JCPU   PCPU  what
gracel   ttyh0     2:45pm     5      5      3  vi /u/gracel/cf.buffer 
carl     ttyh1     1:33pm         1:35         vi +15 /usr/local/lib/lynx/menu/
mta      ttyh2    12:48pm     2     24     13  mail 
robh     ttyh4    12:39pm         2:24   1:24  trn 
tsty     ttyh5     1:58pm     9     23      6  more 
babat    ttyp0     2:53pm     2      2      2  /usr/local/bin/bbs 
gregc    ttyp2    10:08am  2:36     30      5  -tcsh 
other    ttyp4     2:36pm     1     22     10  w 
rwalters ttyp6     2:13pm    17      7      7  trn alt.binaries.pictures.erotic

Enjoy!


#27 of 43 by robh on Sat Mar 5 20:32:27 1994:

What, me using trn?  Preposterous!


#28 of 43 by ziggy on Sun Mar 6 14:28:19 1994:

I was on with 16 *other* people!  The link is GROWING!


#29 of 43 by carson on Sun Mar 6 15:02:30 1994:

um, the link stays the same. The use grows, and the connection slows.


#30 of 43 by curby on Sun Mar 6 16:27:46 1994:

When talking about the load average, What is a good load average to have
the system running halfway quickly?

The follwing "w" I did at the same time that I was typing this message,
and the system seems to be responding fairly nicely.

 11:24am  up 2 days, 19:41,  12 users,  load average: 0.51, 0.27, 0.03
User     tty       login@  idle   JCPU   PCPU  what
cicero   ttyh0    10:13am           17     10  more 
remmers  ttyh1    11:16am           13      3  ftp ftp.cica.indiana.edu 
newuser  ttyh3    11:12am     3                -
wjw      ttyh4    11:21am                      mail 
robh     ttyh5    10:43am         1:10     16  trn 
srw      ttyp0    11:04am     2                -usr/local/bin/tcsh 
curby    ttyp1    11:11am     1     12      2  pico /home/curby/.cfdir/cf.buffe
srw      ttyp2    11:05am     2     10      5  bbs 
beng     ttyp5    11:23am            4      4  pine 
srw      ttyp6    11:23am     1      2      2  lynx 
pig      ttyp7    11:23am            4      4  pine 
curby    ttyp9    11:24am            1         w 



#31 of 43 by carson on Sun Mar 6 16:35:25 1994:

wait until 5 or 6 people are trying to use trn at the same time...


#32 of 43 by kentn on Sun Mar 6 16:51:24 1994:

When the average gets to around 30...things really slow down...heh


#33 of 43 by srw on Sun Mar 6 16:53:59 1994:

re #30: 0.51 is a very light load. The old grex would get up to 6 or 9
and then the system would be on its knees. 

re #31: This load average is a measure of the length of the queue of
processes waiting to get service from the CPU. When you have a lot
of people waiting for communications (which is what trn does) I believe
that they will see slow response, but it will not show up in the
load average.

Wait until you see 5 or 6 people trying to compile programs at the same
time.  Fortunately, that doesn't happen.


#34 of 43 by remmers on Sun Mar 6 17:00:22 1994:

Gee, you mean I shouldn't use grex as a backup system for my programming
students in case the emu system goes down?


#35 of 43 by carson on Sun Mar 6 17:06:28 1994:

I wanna see this now! Is there any way we could get, say, carl compiling 
lynx, srw fixing up layers, gregc, mju, and steve doing something or other,
popcorn fixing up mathom, and remmers with several of his CS students
doing their programming, all on Grex at once? I'd *LOVE* to try to trn during
that! Can we get them all to telnet in, too?

=)


#36 of 43 by gregc on Sun Mar 6 17:42:38 1994:

Actually, I have seen the new Grex with a load average around 10 and the
system was still responding very quickly. The ibig difference is that the
new Grex has 32 meg of main memory. That's alot of memory even
for a modern machine. On the old Grex, if there were 10 processes
in the run queue, at least half of them would be swapped out
to disk and there would be alot of disk activity involved. On the new
machine, all those users will be in memory.


#37 of 43 by steve on Mon Mar 7 02:52:37 1994:

   Yes Carson, we could, but it'd be painful for those on the link.
We've enough CPU power that the system would deal with things OK,
but the poor little link would be pretty beaten up.


#38 of 43 by kentn on Mon Mar 7 02:58:48 1994:

The machine I use at work has 128 meg of main memory.  When the load
average hit around 32 one day, the whole system bit the dust...
(All the tmp space had been used up and most regular Unix commands
would just sit in the job queue, leading to a fast-climbing average.
It was fun to watch...until the system crashed, that is).  Is there
some upper (practical) limit for load average (given a certain amt
of RAM)?


#39 of 43 by steve on Mon Mar 7 03:01:30 1994:

   It all depends on anumber of factors, which are CPU, disk speed
I/O throughput of the system and others, to name just a few.  Most
system will start to die at abuut 30, though.  You could make a
system that could do better if you really wanted to.  Wait a
couplea years.


Last 4 Responses and Response Form.
No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss