HDTenEightyP/NetNews huggingface dataset:
From: thurlow@convex.com (Robert Thurlow)
Subject: Re: NFS security flawed (was: Re: chown : HELP!)
Date: Sun, 30 Aug 1992 22:06:33 GMT
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

In <14371@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:

>NFS, when using "UNIX authentication" has a simple "UID-mapping" scheme;
>the NFS server can map a user ID of 0 to another user ID.  AT&T's RFS,
>and, I believe, some NFS implementations, allow a more elaborate mapping
>to be done, which can map other user IDs as well; RFS may support
>different UID maps for different clients, but I don't know if any NFS
>implementations do so.

We've experimented with a mapping mechanism that looks pretty reasonable.
It has some inherent wrinkles due to the information loss that occurs
when your client UID collides with a UID that exists on the server, but
that's unavoidable.

>Some ONC RPC implementations support "DES authentication", and allow NFS
>to use that as well as "UNIX authentication".  With "DES
>authentication", the credentials are encrypted with a password derived,
>in part, from the user's password, and include an encrypted "verifier"
>to make it harder to forge credentials and have the forged credentials
>appear valid.  It can be a pain to set up and get working, and I've
>heard claims that it's possible to crack the encryption scheme.

IMHO, the worst problem is that there is no way in either the tools
nor the keyserver protocol to announce that you will be logging off
now; if you've ever authenticated yourself to a server, you can't ask
it to forget that information, and are more vulnerable to spoofing.
I can't for the life of me figure out why Sun didn't at least define
the protocol operations for this so that people could implement it
themselves.

>I don't know what the Andrew File System does to detect forged
>credentials, nor what OSF's DCE DFS will do, nor what any other
>distributed file systems do.

The AFS and DCE mechanisms are more-or-less vanilla Kerberos; this
means that the security server is the critical link in the entire chain.  
I only have vague positive impressions about DFS security that still
have to be validated.

Rob T
--
Rob Thurlow, thurlow@convex.com
Across the evening sky, all the birds are leaving
But how can they know it's time for them to go?		- Sandy Denny
Newsgroups: comp.unix.questions,comp.unix.shell
From: herrage@crchh451.bnr.ca (Robert Herrage)
Subject: Killing Offspring
Reply-To: herrage@bnr.ca
Organization: BNR
Date: Thu, 27 Aug 1992 16:05:25 GMT

I have a parent process that forks a child process (C1).  C1, in turn, forks
a grandchild process (GC1) which calls "system()" to execute a shell-script.

While the shell-script is running, the parent process can fork another child
process (C2) whose job is to abort whatever GC1 is doing.  All processes have
access to each others PIDs via shared memory.

When C2 uses kill() to terminate GC1, GC1 becomes <defunc> and the shell-
script keeps on executing.

Is there a way that I can terminate the shell-script too without C2 having 
to call "system()" with some fancy "ps" command to obtain the PID of the 
shell-script?

Any help would be appreciated.
Newsgroups: comp.unix.questions
From: buick@belay (Patrick D. Buick)
Subject: Re: Using KKermit with cu
Organization: Belay Enterprises Inc. Calgary, Alberta, Canada
Date: Mon, 31 Aug 1992 18:02:11 GMT

In article <1992Aug13.124552.6761@news.yale.edu> szewczak@neutron.chem.yale.edu (Alexander Szewczak) writes:
>les@chinet.chi.il.us (Leslie Mikesell) writes:
>: I'm sort of internet-impaired myself
>
>Watch it, buddy. That's "differently networked".
>
>--
>| Dave Schweisguth   Yale MB&B & Chemistry   Email: dcs@neutron.chem.yale.edu |
>| Lab phone: 203-432-5208      Fax: 203-432-6144     Home phone: 203-624-3866 |

Nah, that's Internetually Challenged!! :-)
-- 
==========================================================
Patrick D. Buick EMT, EET  | Internet: buick%belay@uunet.uu.net
Belay Enterprises Inc.     | Internet: buickp@cuug.ab.ca
Calgary, Alberta, Canada   | UUCP:...!calgary!pixel!belay!buick
Newsgroups: comp.unix.questions
From: espiritu@cgi.com (Rex Espiritu)
Newsgroups: comp.unix.questions
Subject: Problems with stray xterm client processes...
Date: 31 Aug 92 20:02:52 GMT

To: comp.windows.x <comp-windows-x@ucbvax.berkeley.edu>
Subject: Problems with stray xterm client processes...

I was wondering if anyone else out there has experienced something similar...

We seem to be occasionally experiencing a problem with "xterm" clients
sharing the same pseudo-devices.

This problem arises when a user logs out of one of our Sun SPARCstations
where they had "xterm" clients running when they logged out.

What happens then is the "xterm" clients of another user (on the same
machine) seems to then start sharing the same pseudo device that the
other user had.  The second user can do a "whoami" and they will get a
response of the other user.  It seems that every other command is
executed under the other users "uid".

Following is an outline of a typical scenario:

1). User "smith" logs into (xdm) "cgist" and starts up xterm clients on an
    NCD X-terminal (or a Sun console running the X11 server).

2). User "jones" logs into "cgist" and starts up xterm clients on an xterm.

3). User "smith" finishes working and logs out of "cgist".

4). One of user "jones" xterm clients now begins acting funny. User "jones"
    can execute "whoami" and get "jones" and then do it again and get "smith".

5). User "jones" must log out in order to clear this problem.

Any information and/or assistance in this matter would be greatly appreciated.
We currently don't subscribe to this newsgroup so please reply via e-mail to:

	espiritu@cgi.com

-- 
M. Rex Espiritu, Jr.                      Carnegie Group, Inc.
espiritu@cgi.com                          5 PPG Place
Voice: 412 642-6900 x233  FAX: -6906	  Pittsburgh, PA  15222
Newsgroups: comp.unix.questions
From: hinz@picard.med.ge.com (David Hinz Mfg 4-6987)
Subject: Re: How can I allow access to a subdirectory without risking other files?
Organization: GE Medical Systems, Magnetic Resonance
X-Newsreader: Tin 1.1 PL5
Date: Thu, 27 Aug 92 11:05:04 GMT

I W Scott Barker (iwsbarke@acs.ucalgary.ca) wrote:
: It seems that my original post wasn't clear enough, so I'll try to rephrase:
: 
: I know how to give group/other access to a subdirectory without risking my
: other files, however, I want people to be able to read/write to ANY file in
: the subdirectory. That includes files put there by other people. The only way
: I know of to do this is to make sure that everyone has their umask set to 000
: when they are working in that subdirectory. I am looking for a better
: solution, where I don't have to rely on them setting their umask correctly.
: The only way I know of to do that, is to set their effective user id to me
: when they are in that subdirectory, manipulating files. What I need to know 
: is how to do that safely. Or, if anyone has another suggestion on how to do
: this, that would be good too.
: 
: Then again, it may just be impossible. If anyone can help, I would appreciate
: it.
: 
How about creating a symbolic link to a shared directory that everyone has
permissions in?  That way, everyone has a subdirectory called 'shared' which
they can do stuff to/in, and you don't have to worry about your own stuff.

Maybe I didn't understand what you're asking, though....

--

Dave Hinz  -  Opinions expressed are mine, not my employer's.  Obviously.
hinzd@picard.med.ge.com
Newsgroups: comp.unix.questions
From: sasbge@ant.unx.sas.com (Gantt Edmiston)
Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
Originator: sasbge@ant.unx.sas.com
Date: Wed, 26 Aug 1992 20:30:25 GMT
Reply-To: sasbge@ant.unx.sas.com
Organization: SAS Institute Inc.


In article, fish@daacdev1.stx.com writes:
>whenever i :! out of vi it uses /bin/sh instead of $SHELL
>so all of my aliases are lost, etc and makes it very limited
>
>i'm just beginning to see just how powerful vi really is but
>this one is screwing me up royally  
>
>	thanx,
>		fish

Try using the ":shell" instead of ":!" to escape out to the shell.

Additionally, try: ":set all".  This will show you all the values of
all the "ex" options.  Look for the one called "shell=" and see if
it is set to your favorite shell.  If not, you *can* create a .exrc
file in your $HOME directory and include the line: set shell=/bin/ksh
or whatever suits your needs.  Then, each time you bring up vi, it
will source the .exrc file and set the options to your preferences.

PS: I don't have the "shell" info in my .exrc file and it gets set
to /bin/ksh by default.  I'm not sure why, but I want it that way
so I'm not too concerned.
-- 
-----------------------------------------------------------------------------
Gantt Edmiston - SysAdmin       |If you always do what you have always done, 
SAS Institute Inc.              |you'll always get what you've always gotten!
Quality Assurance - V416        +--------------------------------------------
Cary NC 27513 919-677-8000 x6091|          sasbge@ant.unx.sas.com
-----------------------------------------------------------------------------
From: x91clifton1@gw.wmich.edu
Newsgroups: comp.unix.questions
Subject: Re: need script to rename uppercase filenames
Date: 4 Sep 92 16:23:44 EST
Organization: Western Michigan University

In article <1992Sep4.162044.2242@netlabs.com>, lwall@netlabs.com (Larry Wall) writes:
> In article <1992Sep03.151245.11128@Celestial.COM> bill@Celestial.COM (Bill Campbell) writes:
> :         s/\s+$//;   # strip all trailing whitespace including ^M
> 
> Unfortunately, that also deletes the ^J.  Since the script unlinks the
> DOS file, you've just thrown away information that's not easily
> reconstructable.  (In fact, the files won't even be editable unless you
> use GNU emacs.)  It would be safer to move the DOS file to a temporary
> subdirectory until you're sure the translation works right.
> 
> I don't want to discourage anyone from helping people, but help is not
> what booby traps are generally construed as...  :-)
> 
> Larry Wall
> lwall@netlabs.com

Since this post is from Larry Wall how about:

#!/usr/local/bin/perl
# lwr--change uppercase filenames to lowercase.

foreach $upr (@ARGV)    {
        ($lwr = $upr) =~ y/A-Z/a-z/;
        rename($upr, $lwr) || die "lwr: $upr->$lwr: $!\n";
}

;-)

/Doug
--
Douglas Clifton [99clifto@lab.cc.wmich.edu]
Newsgroups: comp.unix.questions
From: turnerrw@ssvax1.ssd.loral.com (Robert Turner)
Subject: Directory Name in Unix Prompt
Organization: Space Systems/Loral
Date: Tue, 1 Sep 1992 20:11:39 GMT

I'm sure this question has been asked before, but here it is again from a novice beginner Unix 
user.

I've experimented with editing my .login file to change the apperance of my command prompt.
What is the syntax to cause the prompt to display the current directory name?  Yes, I know this
sounds a lot like DOS but it's still useful.

Thanks in advance for any help on this subject.
Robert Turner
turnerrw@ssvax1.ssd.loral.com
From: ramakris@CSGRAD.CS.VT.EDU (S.Ramakrishnan)
Newsgroups: comp.unix.questions
Subject: Distinguish between numeic & nonumeric char strings in shell ?
Date: 4 Sep 92 07:03:57 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA


 How does one distinguish between a number and a nonnumeric
 character using shelltools (sh/csh, awk, sed, expr, etc) ? 
 I am trying to validate the IP address typed in by the user. 
 I isolate the four components and check each one to see if lies 
 within the legal range (0..255). In the event the user types, say, 
 tom.jack.joe.jim, I want to be able to flag an error. However the 
 IF statement, marked (+) in the fragment below, fails even if a 4 
 component string such as "tom.jack.joe.jim"  is entered. 
 Any suggestions ?

 Encl:
	#!/bin/sh
        ...
	while test "$ip" = ""
	do
          echo "    IP Address = "
	  read ip
          if [ "$ip" != "" ]
	  then
              cnt=`echo $ip | awk -F'.' '{ print NF }'`
              one=`echo $ip | awk -F'.' '{ print $1}'`
              two=`echo $ip | awk -F'.' '{ print $2}'`
              thr=`echo $ip | awk -F'.' '{ print $3}'`
              fou=`echo $ip | awk -F'.' '{ print $4}'`
#(+)
              if [ $cnt -ne 4 -o $one -gt 255 -o $two -gt 255 -o $thr -gt 255 -o $fou -gt 255 ]
              then
	        echo ""
                echo "*** Invalid IP Address Format: Please Retype"
	        echo ""
	        ip=""
              fi
	  fi
        done
	...

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech, Virg.
Newsgroups: comp.unix.questions
From: rpatil@nmsu.edu (Raj Patil)
Subject: Colorado systems Tape Drive--Interactive and SunOS unix
Organization: Computing Research Lab
Date: Fri, 28 Aug 1992 17:59:57 GMT


Hi:

I am having following problem with transfering files from a Sparc-2 to 
486-Interactive unix PC.

I have a colorado systems tape drive on 486-Interactive unix PC. Which 
ccording to the Colorado Systems people can read QIC-150, QIC-113, and 
QIC-130 formats of the tape. The Sparc has tape drive with QIC-150 format.
I am trying to transfer some files from Sparc to PC (no ethernet). The
PC tape drive is not able to read the QIC-150 tape. By default the PC
tape drive is QIC-113. My question is is there any way I can format the
tape on Sparc and tar the files in QIC -113 format so that i can read
he tape on PC.


Thanks in advance

regards

raj patil
usda-ars, nmsu-crl
From: mardones@fundch.cl (Julian Mardones)
Newsgroups: comp.unix.questions
Subject: Re:  INFO-UNIX Digest  V15#122
Date: 27 Aug 92 00:55:26 GMT

Please,

Unsubscribe me 
I have no time to read the mail

Thanks


 +-----------------------------------+
 |        Julian Mardones Saint-Jean |
 |                                   |
 | Software Engineer                 |------------------+
 | CIT Information Technology Center |  FUNDACION CHILE |
 +-----------------------------------+                  |
                    | Av. Parque Antonio Rabat Sur 6165 |
                    | Santiago, CHILE                   |
                    | Phone  : (56-2) 218-5211          |
                    | FAX    : (56-2) 242-6900          |
                    | E-mail : mardones@fundch.cl       |
                    +-----------------------------------+
Newsgroups: comp.unix.questions
From: cb@wixer.cactus.org (Cyberspace Buddha)
Subject: Re: A question on ls
Organization: Real/Time Communications
Distribution: na
Date: Tue, 1 Sep 92 04:36:26 GMT

>=What command would I type to display all files that do not have a .Z 
>=extension ?

mkdir tmp
mv *.Z tmp
ls

well, it'll get you what you want.  :)

From: sk@hpcupt3.cup.hp.com (S Kandasamy)
Date: Tue, 25 Aug 1992 16:38:41 GMT
Subject: Re: repeated process execution?
Organization: Hewlett Packard, Cupertino
Newsgroups: comp.unix.questions

/ hpcupt3:comp.unix.questions / mccalld@vax.sonoma.edu / 10:15 am  Aug 24, 1992 /
Greetings:
     I would like to have a script file execute at my terminal over
and over again but pause every x number of seconds between reexecuting
and permit a keypress assignment to abort the process.......
Could someone lead me to the magic command(s).....
thanks
mac
----------

Very simple Try this,

while :
do
sleep 30
myprog
done

To abort this press the interrupt character. This script runs myprog after
every 30 secs.

Have fun,
SK.
From: nto0302@dsacg3.dsac.dla.mil (Bob Fisher)
Newsgroups: comp.unix.questions
Subject: Re: 80/132 column modes with curses
Date: 31 Aug 92 17:03:33 GMT
Organization: Defense Logistics Agency Systems Automation Center, Columbus

From article <BtpytJ.7KG@research.teleride.on.ca>, by louk@research.teleride.on.ca (Lou Kates):
> Is it  possible to write an  application using curses that has as
> one of  its  functions  the ability  to toggle  a VT100  terminal
> between  80  and  132   column  modes? It appears that there  are
> different termcap/terminfo entries for 80  and  132   column mode
> effectively preventing the above.

The shell variables LINES and COLUMNS can be used to over-ride the
terminfo/termcap definition of screen size.  The user will need to
manually set the terminal itself.

I'm using an archaic system with an old version of curses.  I believe
that newer versions of curses provide other ways of resizing a window
for variable environments such as X, but I can't swear to this.
-- 
Bob Fisher
EMAIL:    bfisher@dsac.dla.mil          osu-cis!dsacg1!bfisher
VOICE:    Commercial 1-614-692-9071	Autovon 850-9071
USPS:     Defense Logistics Agency, DSAC-TOL, Box 1605, Columbus OH 43216-5002
From: tmilner@hprpcd.rose.hp.com (Tom Milner)
Newsgroups: comp.unix.questions
Subject: Re: HPUX discussion group (or mailing list)?
Date: 25 Aug 92 19:22:50 GMT
Organization: Performance Technology Center, Roseville

In comp.unix.questions, shen@athena.cs.uga.edu (Mingzuo Shen) writes:

|    Hi all,
|
|        Is there a group devoted to question/answers and discussions
|    about HPUX? We have a HP Apollo 9000 Series 700 machine. I am
|    trying to compile programs which make use of /usr/lib/libV3.a.
|    The resulting executable is 23 megabytes (it should be about
|    1 megabytes). My first guess is that libV3.a is not a shared library
|    or something?
|
|        Thanks in advance for any pointers; email prefered.
|
|    Mingzuo Shen

Try comp.sys.hp.
Xref: sparky comp.unix.questions:10747 comp.unix.misc:3510
From: billd@informix.com (William Daul)
Newsgroups: comp.unix.questions,comp.unix.misc
Subject: Looking for good online UNIX tutorial...is there such a animal?
Date: 4 Sep 92 18:10:08 GMT
Organization: Informix Software, Inc.
Originator: billd@cheetah

Please let me know where to look.

Thanks,  --Bill
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 William Daul             Advanced Support      INFORMIX SOFTWARE INC.
 4100 Bohannon Dr.        (415) 926-6488 - wk
 Menlo Park, CA. 94025    uunet!infmx!billd  or  billd@informix.com
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: stripping the kernel
Date: 29 Aug 1992 02:00:12 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
Distribution: na
NNTP-Posting-Host: gandalf.think.com

In article <1992Aug28.220038.23662@amhux2.amherst.edu> pfcouvar@amhux1.amherst.edu (Peter Couvares) writes:
>... So: Is it completely okay to strip my kernel (assuming I don't plan to
>do any debugging)?

No.  Many system utilities, such as ps(1), use the namelist in the kernel
file to learn the location in the kernel of the information that they
print.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Xref: sparky comp.unix.questions:10472 comp.unix.aix:9181 comp.unix.misc:3410 bit.listserv.aix-l:1409
From: manmetha@gauss.rutgers.edu (Rajesh Malhotra)
Newsgroups: comp.unix.questions,comp.unix.aix,comp.unix.misc,bit.listserv.aix-l
Subject: Creating a File System in 'C'
Keywords: C subroutine for mkfs command
Date: 28 Aug 92 15:27:52 GMT
Followup-To: comp.unix.questions
Organization: Rutgers Univ., New Brunswick, N.J.


Hi Netters,

	Is there a C subroutine that will create file system. I am looking
for a routine to achieve the same purpose as crfs on AIX.

	The crfs and mkfs commands do it, so I am sure there is a system
call somewhere to do this.

	Any and all responses/ideas will be greatly appreciated.

P.S. I am running AIX3.2 on an IBM RS6000.

Thanx,

Raj.
-- 
===============================================================================
  __  __     .
 /   __/    /                               Raj Malhotra.
/   ( /_   /                                voice : (908)613 4313. 
        __/                                 email : manmetha@gauss.rutgers.edu

===============================================================================
From: jbowyer%ovc.vutbr.cs%CSBRMU11.BITNET@aearn.edvz.uni-linz.ac.at (Jeff Bowyer)
Newsgroups: comp.unix.questions
Subject: UNIX Philosophy
Date: 4 Sep 92 16:10:23 GMT

I am very new to UNIX, having worked with DOS for the last 5
years.

I want to find an editor to use under UNIX (HP-UX 8.02) on our
computer (HP 9000/807).

Although I have located the source code for several editors
throughout Internet, I cannot get a clean "make" out of any of
them.

Coming from the DOS world, where source code seldom accompanies
a program, I am quite hesitant to start whacking away at someone
else's code in order to get a clean "make."

Will someone with more experience please explain to me the UNIX
philosophy?  Should I only look for software with documentation
that explicitly states that it will run under HP-UX 8.02?  Should
I get used to the idea of changing the source code every time
I want to use a new program?

Jeff Bowyer
From: cheselka@cactus.org (Michael R. M. Cheselka)
Subject: two simple nawk questions, Sunos 4.1.2 and nawk
Summary: printing out ranges like $1-$19, and parameterless nawk scripts
Organization: Capital Area Central Texas UNIX Society, Austin, Tx
Date: Mon, 24 Aug 1992 02:39:58 GMT

I am trying to nawk through a file and change in the 20th field the value
of the date from mo/da/year, as in 02/30/1993, to mo/ld/year, as in
02/28/1993( where da is any particular day, even wrong ones, and ld is the
correct last day of the month), and the two problems I can't solve are,
that I can't get the shell wrapper to work like I would like without having
to specify a file on the command line, and I am having trouble finding a
way to print out the line when I am done, using ranges, like $1-$19.

I would like to do:

1)
#! /bin/nawk -f # Call the nawk script without any parameters
BEGIN { FS = "|";
       OFS = "|" }
{ while ( getline <"Data.file" > 0 )

...rest of script...

How can I run this program without having to use:

mysys: ~ $ datefix Data.file

In otherwords, just by typing the script name( without Data.file).

2)
How do I specify a range for a print statement:

print $1-$19,date,$21-$37

Right now it seems I have to have a line like:

print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14...goes on and on till
I wanna scream!

I am sorry if these are obvious questions or FAQ's, but nothing about them
appears in the O'Rielly book, or anywhere else.  I guess the creaters of
nawk expect you to write filters like:

mysys: ~ $ datefix -F\| -f20 < Data.file > Data.file.fixed

but I want to do it my way.
-- 
cheselka@cactus.org               N5UVV              Michael R. M. Cheselka
os9@gnu.ai.mit.edu        Hangs out on 145.21mhz       400 W. 34th st. #103
membership@cactus.org                                 Austin, TX 78705-1331
{...}!cs.utexas!cactus.org!cheselka (512)452-9412v ( 24hours answer. mach.)
From: rouben@math9.math.umbc.edu (Rouben Rostamian)
Newsgroups: comp.unix.questions
Subject: Re: A question on ls
Date: 29 Aug 92 23:35:34 GMT
Distribution: na
Organization: University of Maryland Baltimore Campus

In article <6786@tekig7.PEN.TEK.COM> naren@tekig5.pen.tek.com (Naren Bala) writes:
>If I type
>% ls *.Z 
>All files with .Z extension are displayed.
>
>What command would I type to display all files that do not have a .Z 
>extension ?

The wildcards are expanded by the shell, so the answer is: it depends on
the shell you are using.  In tcsh, you type:
% ls ^*.Z
In sh and csh you are out of luck.  In other shells, I don't know.

--
Newsgroups: comp.unix.questions
From: cobb@betsy.mc.ti.com (Chip Cobb)
Subject: Man page ---> postscript  .... help! 
Originator: cobb@betsy.mc.ti.com
Organization: Texas Instruments / Attleboro Mass / USA
Date: Sat, 29 Aug 1992 15:51:48 GMT


Hi,

This is probably a very basic question.  I want to print a man 
page on a postscript printer.

I've tried lot's of things but to no avail.  

Anyone know how to do this.

Thanks in advance,
Chip
-- 
..................................................
    //  /   O           Chip Cobb
  /    /_    _         Texas Instruments  
 /    / / / /_/       Advanced Development