HDTenEightyP/NetNews huggingface dataset:
From: jhgreen@cs.sandia.gov (Jethro H. Greene)
Subject: SetUID
Followup-To: poster
Originator: jhgreen@cs.sandia.gov
Organization: Sandia National Laboratories, Albuquerque, NM
Date: Wed, 11 Nov 92 03:54:08 GMT

I am trying to give certain paople (not in my group) read permission in 
all of my files.  I am now experimenting in using shell scripts with the 
SetUID bit set.  What kind of file does a SetUID script have to be?  Can
it simply be

	cat > reader
	(A bunch of password stuff)
	cat
	^D

	chmod 4711 reader


	---or---
	would I have to actually copy the script from the /usr/bin directory?

I don't really want to take the risk of experimenting with SetUID because 
I know that it is dangerous.  Could someone explain SetUID to me or suggest
a good source?


Thanks in advance,
Jed
---
Newsgroups: comp.unix.questions
From: ahoekstr@cs.utwente.nl (Andre D. Hoekstra)
Subject: Re: C-Shell question
Followup-To: comp.unix.shell
Organization: Universiteit Twente, afd. WB/WA (NOT cs)
Date: Fri, 6 Nov 1992 11:57:04 GMT

In article <1992Nov5.020850.572@news.csd.sgi.com> vidya@akshay.csd.sgi.com (Vidya Alankar) writes:
>The exit status you get is from the command "rsh" and not from the script it
>executes. Since "rsh" completes normally, you will see "0" which is its 
>"completion ok" status. If you do an "echo $status" inside the script, you
>might see the exit status of the command of rm.
>
>- Vidya

NB: followup redirected to comp.unix.shell

The original question was:

I have a script that goes:

#!/bin/csh # ??

/bin/rm -f file

if ( $status ) then blabla

#end of script; exit

When I run this script normallly it works OK, but when I try to
rsh somehost script
I always get a $status of 0

As you can see the $status is referenced _inside_ the script, so Mr. vidy,
I think you are wrong. Therefore there should a difference in the execution
of the rm on thishost and somehost. Maybe the script is not even present on
somehost?

Andre--
-- 
There is no reason for any individual to have a computer in    | Andre Hoekstra
their home. (Ken Olson, Ex-President Digital Equipment, 1977)  | Enschede -- NL
Newsgroups: comp.unix.questions
From: bill@bilver.uucp (Bill Vermillion)
Subject: Re: IS UNIX DEAD? (long)
Organization: W. J. Vermillion - Winter Park, FL
Date: Tue, 10 Nov 1992 16:46:47 GMT

In article <BxGu2H.A62@undergrad.math.waterloo.edu> papresco@napier.uwaterloo.ca (Paul Prescod) writes:
>Why is it, in VI  .....

>Why doesn't VI use the jkl; keys for cursor movement, since your fingers
>are already on them.  Or why not use keys somewhere far from them.  A
>person can easily get confused.

That is one of the nice features of vi.   The hjkl keys are where you
normally place your fingers and in command mode h moves you left, j
down, k up and l right.   I guess you just didn't try them.   And if
your terminal is configured properly you can use the arrow keys too.

>Why is it that if I want to WordProcess in VI I have to remember to hit return at the end of the line otherwise bizarre things happen.  Why not just wrap, beep, or slide over (i.e. let the line go long). 

Yes - I noticed that you let the words continue on a very long line.
But since vi needs to be a program editor too, there are options of
continuing long lines, or to have them wrap just like vi is doing for
me right now.   set wrapmargin=5 will do nicely.

>Inquiring minds want to know.

It appears you didn't inquire of your FM too much :-)


-- 
Bill Vermillion - bill@bilver.oau.org  bill.vermillion@oau.org
                - bill@bilver.uucp 
                - ..!{peora|tous|tarpit}!bilver!bill

Newsgroups: comp.unix.questions
From: zklf0b@gs144.uucp (Fergason)
Subject: Re: IS UNIX DEAD? (long)
Keywords: n
Organization: Amoco Production
Date: Thu, 12 Nov 1992 22:49:08 GMT


In article <BxKtvw.J7v@unix.amherst.edu> djweisbe@unix.amherst.edu (David Weisberger) writes:
>Paul Prescod (papresco@napier.uwaterloo.ca) wrote:
>
>: If you launch an editor from VI, that editor should be a wordprocessor.  If
>: it is vi, vi should be in wordprocess mode.  If it doesn't, that is a flaw.
>: 
>Not to split hairs, but ha ir we go: there is a difference between an
>editor and a wordprocessor.  vi is an editor.  Hey, I even found DOS's
>edlin rapid and effective for making specific, small-scale changes.
>vi and other editors have that advantage, among others.
>
>: If help does nothing at the command prompt.  That is a flaw.
>: 
>This is true.

Jumping in the discussion like any true Usenet reader, usually
in the middle of the thread, in which I missed the beginning
and will probably miss the end:

I disagree.  Not having used too many OS's, I can only recall 2 
that the help command did something.  Vax VMS, and Microsoft Dos 5.
I take that back, i just thought of Wylbur/MVSX, and VM/CMS.  I believe
help does something on those systems.  

Why should help do something at the command prompt?  I would much, much
rather have the hardcopy manual in my hand.  While online help might
be nice, I really just do not see its absence as an inherent flaw.


Kelly

Newsgroups: comp.unix.questions,alt.folklore.computers
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Whence Unix? (was Re: IS UNIX DEAD?)
Organization: Bob Stockler
Date: Fri, 06 Nov 1992 22:19:39 GMT

magnus@thep.lu.se (Magnus Olsson) writes:

>Thompson and Ritchie seemed pretty proud about the 600 installed
>systems in 1978; I wonder what they'd have said if somebody had told
>them back then that there'd be millions of Unix systems within 15
>years... 

They probably would have renegotiated their employment contracts to
more specificly include sweeter "residuals".
Newsgroups: comp.unix.questions
From: franklin@ug.cs.dal.ca (Steve Franklin)
Subject: Re: Does anyone have any good insulting acronyms for VMS?
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Sun, 8 Nov 1992 07:25:43 GMT

In article <johnv.03ht@acix.DIALix.oz.au> johnv@acix.DIALix.oz.au (John Verhoeven) writes:
>Elizabeth Haley (haley@husc11.harvard.edu) wrote:
>> Verifiablely Maniacal System
>> Viciously Mangled System
>> Vogon Made System
>> Vacuous; moreover, stupid.
>> Vaxes mostly Suck.
>Vomit Making System...

Alright... here we go...

Virtually Mindless Software
Vulgar Morbid Syntax
Valuable Machines? Sorry
Vile, Mentally Slow
Violates My Standards!
Vintage Management System
Void Machine Standards
Visualize MIPS Slowly

###and from here it just gets plain bad 8)###

Vivaldi Music Sucks 8)
Vegetarian? More Steak!
Volvo Maintenance Skyrockets!
Vishnu Meets Satan.
Virus Makers Suck.
Very-tired-am-i. Maybe-i-should-go-to-bed. See-ya
^                ^                         ^

steve
-- 
aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
Newsgroups: comp.unix.questions
From: hymowitz@syzygy.cs.jhu.edu (Hymie!)
Subject: tty redirection help
Reply-To: hymowitz@cs.jhu.edu (Hymie!)
Organization: Creative Sensualities dept, Jacquie's House of Underwear
Date: Fri, 6 Nov 1992 02:59:10 GMT

hello.  i seek assistance with two tasks, and i wonder if someone can
help.

task 1: i want to redirect console output to a file.  the reason is that
i will start a download process (perhaps thrity or forty mintues worth)
at bedtime, and then return eight hours later to find a flood of talk
requests and the like.  it would be nice to capture this into a file
to peruse at my leisure.

task 2: i would like to set up (via xwindows, or perhaps not) a plan to
use one window/tty for input, and another for output (similar tot eh
talk split-screen.

would anyone know if/how these can be done?

thanx in advance.

--hymie
hymowitz@cs.jhu.edu                                         hymie@jhuvms.bitnet
-------------------------------------------------------------------------------
Walking in space, we find the purpose of feet.
The beauty of life you can no longer hide.
Our eyes are open, our eyes are open.                            --Ragni & Rado
-------------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: mercla@netcom.com (Barry Solomon)
Subject: /dev/kbd IO?
Summary: How to append chars to input buffer?
Keywords: device driver stream socket whatever
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Mon, 9 Nov 1992 06:02:05 GMT

How can I append characters to the lowest level chaacter buffer as if the
user had actually typed them in from the keyboard.  I do not want to have to
rebuild the kernal.  I want to do this on sunos and hp700 series running ver5
unix?

Barry
From: godden@stein.u.washington.edu (Jeff Godden)
Newsgroups: comp.unix.questions
Subject: warning possible FAQ:  not substring in regex
Keywords: regular expression
Date: 7 Nov 92 00:39:02 GMT
Article-I.D.: u.1992Nov7.003902.3217
Organization: University of Washington

Sorry Folks if this is a overasked or (worse yet) an obvious question,

How do you specify within a regular expression NOT a substring?  That
is, suppose I want to find all filenames that begin with the letter
'z' and don't contain the string "cy" anywhere in them, is this possible?
If so how?  Does this work?:

     ^z.*[^c][^y].*

Sorry for the stupid question.  Couldn't find this issue in any "FM".

May your camel spit nothing but dates,
jeff
godden@u.washington.edu
Newsgroups: comp.unix.questions
From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
Subject: Re: IS UNIX DEAD?
Organization: Texas Instruments Inc
Date: Thu, 5 Nov 1992 19:04:24 GMT

In <JC.92Nov3112944@condor.bu.edu> jc@raven.bu.edu (James F. Cameron) writes:

>>>>>> "Paul" == Paul Prescod <papresco@undergrad.math.waterloo.edu> writes:

>[...]


>3.It should install from floppy as well as CD.  


>Why?  Why on earth would this be a good thing?  In order to have all
>the things you want, the system would need to be pretty big.  I can't
>*stand* having to install software on a PC which requires many
>floppies.  

Why would having the choice be bad?  Nobody said it should install
from ONLY floppies.

-- 
"Insisting on perfect safety is for people who don't have the balls to live
 in the real world."   -- Mary Shafer, NASA Ames Dryden
------------------------------------------------------------------------------
Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
Newsgroups: comp.unix.questions
From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
Subject: Re: IS UNIX DEAD?
Organization: Texas Instruments Inc
Date: Thu, 5 Nov 1992 18:55:35 GMT

In <95691@netnews.upenn.edu> ioi@pixmap.seas.upenn.edu (Ioi Kim Lam) writes:

>Religiously, I think that Unix is the most beautiful OS ever made. It is a
>shame that only a tiny population in the world shares its power and elegance.
>It is nothing but arrogance and selfishness in the Unix community that try
>to deny the power of Unix to the common users. It is this bunch of sick
>computer scientists who refuse to think a better user interface can enable
>everyone from 6 to 86 to use Unix and that the power of Unix is their own
>and no one else should have their hands on.

I'm not sure what you're trying to say here, but I can't get any sense
out of it.

>Go and look at the development of NT. You are right, it is nothing new but
>a nice commercial plot. It is just Unix (maybe even a simplified one) in a new
>box. 

Not hardly.

>You guys should have done this years ago. With the advance of NT and
>other new OS's, traditional Unix customers will say goodbye to their
>old-time friend. They still love Unix, but in their mind, the new OS's are
>better Unix'es than Unix.

>Perhaps it would not be NT, but one day, a new operating system will come
>up and deliver the power of Unix to virtually everybody. And that is the
>day that all the Unix sysadmin got fired. 

I think it was Henry Spencer that had a quote in his .sig that I
loved.  It ran something like, "Ever since Unix was developed, other
people have been spending time reinventing it -- poorly."  That seems
to describe NT (among other things).

-- 
"Insisting on perfect safety is for people who don't have the balls to live
 in the real world."   -- Mary Shafer, NASA Ames Dryden
------------------------------------------------------------------------------
Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
Newsgroups: comp.unix.questions
From: twpierce@unix.amherst.edu (Tim Pierce)
Subject: Re: IS UNIX DEAD?
Followup-To: alt.stupidity
Organization: Homosexual Fascist Lobby, Rampant Paranoia Division
Date: Mon, 9 Nov 1992 15:32:39 GMT

In article <BxG89G.Mn6@undergrad.math.waterloo.edu> papresco@undergrad.math.waterloo.edu (Paul Prescod) writes:

>>>*IF* you have a sysadmin. What if it's your machine at home?
>>
>>Then, by default, you're your own system manager.  Can't hack it?  Get
>>a different operating system.
>
>aaah, then you are prepared to give up 95% of the home market to Windows
>and OS/2?

That's
what
I
said
in
the
goddamned
first
place.

-- 
____ Tim Pierce                / 
\  / twpierce@unix.amherst.edu / I use antlers in all of my decorating.
 \/ (BITnet: TWPIERCE@AMHERST) / 
Xref: sparky comp.unix.questions:13163 comp.unix.shell:4602
From: a-douglas@uchicago.edu (Allen Douglas)
Newsgroups: comp.unix.questions,comp.unix.shell
Subject: Re: How do you cat only the first 50 lines of a file?
Date: 9 Nov 92 16:36:42 GMT
Article-I.D.: midway.1992Nov9.163642.3838
Organization: U of C  Law School

> 
> Since comp.unix.* includes comp.unix.internals and comp.unix.wizards,
> I would say that the entire hierarchy is most definitely *not* there
> `for newbies to learn.'  As far as comp.unix.questions goes, though,
> you're entirely correct, although the poster would have been far
> better served by calling user support at UChi.

You assume that the folks at the U of C have user support that knows UNIX well enough 
to be called... They don't, which is why I post here occaisionally. (I'm not the origional 
poster,though)
Allen
From: beck@a.cs.wvu.wvnet.edu (Jon Beck)
Newsgroups: comp.unix.questions
Subject: creeping featurism reference
Date: 11 Nov 92 20:37:32 GMT

Can anyone give me a reference for the first use of this term to
describe unix programs? ("I've already forgotten more than you ever
knew..." Good grief, now I've forgotten who wrote *that*. Dylan?)

Thanks.
-- 
Jon Beck, SoRReL Project GRA
West Virginia University, Stat & CS
beck@cs.wvu.wvnet.edu
Newsgroups: comp.unix.questions,comp.unix.admin,sci.comp-aided,sci.engr,sci.engr.mech
From: lawrence@combdyn.comb-dyn.uumh.ab.ca (Lawrence Chen)
Subject: WANTED: Fast UNIX Workstation under $50K for CFD
Summary: Want the Most GFLOPS for the buck
Keywords: UNIX GFLOPS MFLOPS cheap
Organization: Combustion Dynamics Ltd.
Date: Fri, 6 Nov 1992 19:05:09 GMT

Please respond by Email.

My employer is looking for the fastest (in floating point performance) UNIX
workstation that he can get for under $50K (CDN).  Our application is our
Blast(CFD) & Structural Response Workstation code.

Please send me information, specs. and contacts for any workstation that
might fit his requirements.

Thanx,



-- 
 --EMAIL-----------------------------------------PHONE-----------FAX-------
 | WORK: lawrence@combdyn.portal.com           | (403)529-2162 | 529-2516 |
 | HOME: dreamer@lhaven.uumh.ab.ca             | (403)526-6019 | 529-5102 |
 --------------------------------------------------------------------------
  disclamer = (working_for && !representing) + (Combustion Dynamics Ltd.);
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Thu, 5 Nov 1992 13:06:19 GMT
Organization: Global Village 1

spedpr@thor.cf.ac.uk (Paul Richards) writes:

>Just because an OS is multi-tasking doesn't make it UNIX.

But NT will be POSIX compliant. Ok, first see then believe, but it shouldn't
be that hard I suppose.

>A lot of this thread has centered around the admin problems assosciated
>with unix.

Yeah, but don't forget about learning to use and using the system too.

>Are these machines going to use mail, share networked printers...

Most PC networks have an administrator, so that's not an issue. The problem is
single user machines. How much administration does a Mac, ST or OS/2 system
need?

>That's just for a single user using windows/dos, when you get to OS2 or
>NT things get worse.

Well, I have a different experience. Installing OS/2 v1.3 was very easy. Just
insert the first disk, and off we go. I don't know about v2.0, but it might be
even better. I've installed UNIX several times on several systems, but I've
never managed to get it right the first time (except with Linux). After
installing OS/2 v1.3, I didn't need much system administration. I don't need
much administration for my Linux system either, but that's just because Linux
is a simple (i.e. without the creeping featurism) UNIX system.

>I spend more time helping DOS users, who are trying

DOS is a yesterday's system and UNIX won't lose from DOS. But now compare UNIX
to today's and tomorrow's systems like OS/2 and NT.

>Anyone who believes that unix is dead because it requires sys admin

UNIX ain't dead, it might just become a niche system.

>are about to emerge. They will face the same problems as those I've
>mentioned above but in these cases there won't be the wealth of unix
>experience to fall back on. Good luck to those embarking along this
>path.

Not as long as you use them as single user machines. In a networking
environment, there is typically a system administrator who is going to help
the users. My experience is that OS/2 v1.3 is much easier to use and
administrate than UNIX, at least, from a user's perspective. I like UNIX very
much, but then, I'm not a user...

Newsgroups: cs.general,comp.unix.questions
From: rwhelan@gmuvax2.gmu.edu (Ryan A. Whelan)
Subject: Re: diff in scripts again
Organization: George Mason University, Fairfax, Va.
Date: Mon, 9 Nov 1992 10:24:09 GMT

In article <ssuhook.720712389@reading> ssuhook@susssys1.reading.ac.uk (Roger Neil Hook) writes:
>Why on earth have we got an article from this place in cs.general????

what IS cs.general ANYWAY!?!?!?!?!


-- 
Ryan A. Whelan                      "Repetition does not establish validity."
rwhelan@gmuvax2.gmu.edu                                         - Souder's Law
Newsgroups: comp.unix.questions
From: mikeb@cad5.cray.com (Mike J. Buchmann)
Subject: Re: sh functions
Originator: mikeb@cad5
Organization: Cray Research, Inc.
Date: 5 Nov 92 12:11:22 CST


In article <5724@esf.esf.de>, klaus@helsinkiesf.de (Klaus Wicovsky) writes:
> 
> I would like my sh script to use funtions. The only way I found up to now is this:
> 
> ------------------------------
> #!/bin/sh
> cat << 'EOF' > /tmp/toto
> my_func()
> {
> echo HERE
> }
> EOF
> . /tmp/toto
> 
> my_func
> ------------------------------
> 
> Is there a way to do it without tmp files ????
> 
> 
> 
> Klaus Wicovsky                                                   
>                                                                     
>    ESF Headquarters                    Tel : ++49+30-820 903 47      
>    Hohenzollerndamm 152                Fax : ++49+30-820 903 19      
>    1000 Berlin 33                      UUCP: klaus@esf.de        
>    Germany             


The following should work the same way:
-----------------------------
#!/bin/sh

my_func()
{
  echo HERE
}

my_func
----------------------------

You can also receive parameters and return values with functions:

------------------------------
#!/bin/sh

# The function getit echos a string passed to it (argv[1]), reads input
# from the user and returns it to the calling function in the variable $input

getit () {
  echo "$1"
  read input
  export input
}

# MAIN Part of script

echo "Start of script"
getit "Please enter your name"
echo "Hello $input"
exit 0

---------------------

These functions only work for Bourne Shell scripts,
as far as I know.  If any one knows of doing this in
C-Shell scripts, please let me know how.


------------------

MIKE BUCHMANN
Cray Research, Inc.
Chippewa Falls, WI  54729

email: michael.buchmann@cray.com  OR  mikeb@ted.cray.com
Newsgroups: comp.unix.questions
From: asriniva@vela.acs.oakland.edu (MONK)
Subject: .PLAN File
Organization: Oakland University, Rochester MI.
Date: Mon, 9 Nov 1992 21:31:36 GMT


hi folks

Can some one email me some decorative program to be executed as a .plan
file, so that if some one fingers u it comes up.
Or can me give some hints to write one.

Thanks.
athi
-- 
_________________________________________________________________________
athi			
_________________________________________________________________________

Xref: sparky comp.unix.questions:13290 news.software.nntp:1496
From: IETAM@ASUACAD.BITNET (Thom Anthony McCarty)
Newsgroups: comp.unix.questions,news.software.nntp
Subject: Re: cron not finding script
Date: 12 Nov 92 19:44:45 GMT
Organization: Arizona State University

The cron/script mystery has been solved; it was the single quote marks
surrounding the cron command.

Thanks to Doug Sewell and Andreas Karrer.
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Fri, 6 Nov 1992 12:10:06 GMT
Organization: Global Village 1

ian@eonsw.demon.co.uk (Ian Leonard) writes:

>I bet there have been more books written that try to explain MSDOS
>to new users that there have been for Unix. Getting a new user up and
>running on MSDOS is 100 times more difficult than it should be.

That's because most UNIX machines are maintained by people who already have
the knowledge. The large number of books that try to explain MS-DOS to new
users only shows that there are many unknowledgable users who use MS-DOS.

>Your not comparing like with like. Unix is for professional, large
>installations. DOS isn't.

That's the point, it isn't for professional, large installations anymore.
Workstations are also great single-user machines. They cost less and offer more
than high-end PCs. If these machines can run NT in the future, then users who
buy such a machine will choose NT instead of UNIX. Every PC user at this moment
is a potential workstation user in say 5 to 10 years. What's going to happen to
UNIX if that market is conquered by NT?