HDTenEightyP/NetNews huggingface dataset:
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Re: How to make Restrict Shell more safely?
Organization: Northwestern University, Evanston Illinois.
Date: Mon, 4 Jan 1993 20:07:32 GMT

In article <1993Jan4.194925.7364@crd.ge.com> davidsen@crd.ge.com (bill davidsen) writes:
>  1. Create the directory /guest/bin, and put all the stuff you want in
>there, as wellas your shell.

ok. 
>  2. Create the guest user accounts, as /guest/user1, or /guest/joe, or
>whatever. The sticky bit should be set on these directories, mode 1711
>is suggested.

ok.
>  3. Create a .profile file in /guest, *owned by bin*, and link it into
>each user's home directory. Set permissions 644. This prevents the user
>from changing or deleting the profile. In the profile set the PATH to
>/guest/bin and set the variable *readonly*
>	PATH=/guest/bin
>	export PATH
>	readonly PATH
>
ok.
>  4. Remember that some programs give shell access via escapes, like vi,
>emacs, etc. Some versions use PATH and are safe, some use /bin/sh and
>are not at all safe.

Yeah, here is the BIG problem. If you want to let restricted users have 
access to vi, mail, and news, you have the shell escape problem. This
is not a trivial thing to fix -- especially if you don't have the source.

>  5. The *really* safe way to have guest users is to run them in a tiny
>system of their own using chroot. It is very hard to do this without
>losing a lot of functionality, however, so I don't do that.

	Yeah -- try ftp. Really, if this is the kind of atmosphere you want
your general users to have, why give them UNIX accounts at all? Run some
server-client which connects to your machine, brings down news, mail, or
whatever, and let the user fiddle with it on his own machine where he can
have as much functionality/security he wants.

-tms

-- 
You can get further with a kind word | You can get further with a kind word
and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
          --al capone                |           -- John Navarra
=======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
Xref: sparky comp.unix.shell:5328 comp.unix.ultrix:9227
From: mpearson@lynx.dac.northeastern.edu (Matthew Pearson)
Newsgroups: comp.unix.shell,comp.unix.ultrix
Subject: UNIX/ULTRIX shell Menu interface wanted (vt not x )
Date: 10 Jan 93 17:23:35 GMT
Followup-To: postser
Organization: Northeastern University

I am looking for a shell program (so it can be very easilly modified by
anyone) that can be setup as a menu. I have an old DCL for the VMS
system menu that I installed for people in their older VAX accounts to
make things easier. I setup Mail, Download, etc as commands... and I am
looking for something similar for UNIX c-shell if it exists in 'C' I
could use that as well...

Danke..

Matthew Pearson
Newsgroups: comp.unix.shell
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: ksh 1, perl 2  ksh or perl for scripting?
Originator: tchrist@pixel.convex.com
Date: Tue, 5 Jan 1993 22:31:46 GMT
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: Convex Computer Corporation, Colorado Springs, CO
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.

From the keyboard of chris@engineer.mrg.uswest.com (Chris Fedde):
:Always use /bin/sh or compiled images for system tools.  
:
:	did I make my point?

Of course not.  You merely made an assertion.  Without logic
to explain your position, it carries no weight.

--tom
-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist
    If you have ever seen the grim word "login:" on a screen, your mind
    is now a wholly-owned subsidiary of The Death Star.
                John Woods in <14105@ksr.com> of comp.unix.bsd
From: davidsen@ariel.crd.GE.COM (william E Davidsen)
Newsgroups: comp.unix.shell
Subject: Re: How to make Restrict Shell more safely?
Date: 4 Jan 93 20:00:35 GMT
Reply-To: davidsen@crd.ge.com (bill davidsen)
Organization: GE Corporate R&D Center, Schenectady NY

In article <1993Jan4.194925.7364@crd.ge.com>, davidsen@ariel.crd.GE.COM (william E Davidsen) writes:

| Okay, here's how... I'll show it for putting all the users in /guest,
| since that's how I do it.
| 
|   1. Create the directory /guest/bin, and put all the stuff you want in
| there, as wellas your shell.

Sorry to followup my own posting, but I forgot to mention that you put a
dummy sh program in the /guest/bin directory, which calls rsh (or sh
with the -r arg).

Something like:
  main(argc,argv)
  {
    argv[0] = "rsh";
    execvp("rsh", argv);
  }

Since PATH only allows running programs from /guest/bin and the user
can't write there, ill behaved user programs can't be executed (nor
should you allow access to a compiler).

Followups please note any major holes in this (I've run it for years, so
I probably have a fix I didn't mention).

-- 
bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
    Keyboard controller has been disabled, press F1 to continue.
From: cyberman@exucom.com (Stephen R. Phillips)
Newsgroups: comp.unix.shell
Subject: Csh for the PC (source requestt
Date: 9 Jan 93 20:03:02 GMT
Organization: ExuCom Multimedia Inc.
X-Newsreader: TIN [version 1.1 PL8]


I am currently working with a CSH for the PC dated 1985.  If there is a
more recent version PLEASE inform me.  I would like to replace the insiped
command.com with my own shell (features added that DOS simply doesn't have).

Cyberman - assistance would be apprciated.

-- 
This is my sig file!
Read rec.games.programer!
Newsgroups: comp.unix.shell
From: beric@sunvcr.canada.sun.com (Beric Maass - Sun Vancouver SPS)
Subject: Re: need a bit of help in
Reply-To: beric@sunvcr.canada.sun.com
Organization: Sun Microsystems Computer Corp.
Date: Mon, 4 Jan 1993 18:19:02 GMT

In article 23031@mnemosyne.cs.du.edu, rduta@nyx.cs.du.edu (Radu) writes:
>
>2) I was wandering what is the easiest way to do a recursive grep, where
>   it searches all the files in all dirs.  I was thinking something along
>   the lines of "grep -R string *" but the "-R" flag is not an option.
>
>any ideas?

Yup -

find . -type f -exec grep -i string_to_search /dev/null {} \;

  --Beric
=======================
I'm not sure who's opinions I've expressed but rest assured,
odds are, they are not those of my employer's





Newsgroups: comp.unix.shell
From:  ss@loniis.spb.su (Sergey Smirnoff)
Subject: Re: switch/case question under csh
Reply-To: ss@loniis.spb.su
Organization: St. Petersburg I of Telecom
Date: Sun, 10 Jan 1993 14:15:25 GMT

In article <PATRICK.93Jan7155500@casbs.Stanford.EDU> patrick@casbs.Stanford.EDU (Patrick Goebel) writes:
> In a switch statement under csh, I need a case that traps the [
> character (among others).  However, all the case statements I have
> tried yield a "Missing ]" error.  Here's what I've tried so far:
>
> case "[":
> case "\[":
> case \[:
> case "[[]":
> case "[\[]":
> case "'['":
> case '[':
>
> Does anyone know the magic incantation that quotes the [?  I need to
> do the same thing with some other "trouble" characters like * and _
> (underscore).
>
> Thanks in advance for any pointers.

Try something like this:

#!/bin/csh
set a = '['
set b = `echo "$a" | sed 's/\[/0x5b/'`
switch ($b)
case 0x5b:
    echo "here is $a"
    breaksw
endsw

--
Sergey
ss@loniis.spb.su
From: menjan@cs.umb.edu (Men-Jan Lin)
Newsgroups: comp.unix.shell
Subject: How to port this sh script to csh script ?
Date: 11 Jan 93 04:21:59 GMT
Distribution: usa
Organization: University of Massachusetts at Boston


Two questions for csh experts :

1. How to port this sh script to csh script ?

#!/bin/sh
while read line_by_line 
do
	echo "Do something for $line_by_line"
done < input_file

2. Can I use "line" command in my previous example csh script ?
   If answer is 'Yes', then How ?

Thank you very much.

-Jane

PS: What I want is processing input_file line by line.
Newsgroups: comp.unix.shell
From: bill@Celestial.COM (Bill Campbell)
Subject: Re: How to automount an NFS?
Organization: Celestial Software, Mercer Island, WA
Distribution: na
Date: Sat, 09 Jan 1993 23:46:30 GMT

:ta2321s@dunix.drake.edu (Terry Asher alias -       The Penguin) writes:

:    I am trying to automount wuarchive.wustl.edu on /stl.  When I give the
: command automount -f auto -M /stl and then cd to /stl and say ls I get nothing.
: My auto file in /etc looks like this:
: /stl           -ro             wuarchive.wustl.edu:/archive/graphics/gif
: I have also tried the command:
: automount -M /stl and still no go.
:    I want to automount rather than mount because if wuarchive goes down then
: it adversely affects my Unix system.  Thanks for any help.

I saw an article recently discussing various automount software
(It may have been in Unix/World) which recommended amd software.
This software has a database describing what needs to be mounted
and is supposed to gracefully handle dead systems.

I picked up sources (version 5.2) from a neighboring Sun site.
My initial impression was that it was quite SunOS specific (my
target system is SCO Unix 3.2v4).  Has anyone ported the amd
automount software to SCO?  Any comments?

Bill
-- 
INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
             uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
Xref: sparky comp.unix.shell:5255 comp.unix.programmer:5832
From: richb@stard.Eng.Sun.COM (Rich Burridge)
Newsgroups: comp.unix.shell,comp.unix.programmer
Subject: Re: A quoting problem.
Date: 5 Jan 1993 18:55:44 GMT
Organization: Sun Microsystems Australia
Distribution: world
NNTP-Posting-Host: stard
Keywords: SVR4, Bourne shell, quoting filenames.

>In article <lkh5trINNvf@exodus.Eng.Sun.COM> I wrote:
>>strcpy(cmd, "FILES='file file1 file2';export FILES;rm $FILES") ;
>>...
>>execl("/bin/sh", "sh", "-c", cmd, (char *) 0) ;
>>...
>>Now the problem is how to correct quote the "cmd" string to handle all
>>possible filenames. Can this be done?

I've had a few replies on this. Thanks to all those people.

From the replies I've received, I believe I should have been clearer. I'm not
just trying to remove files here. The example was one specific case of a
generic routine that kicks off all types of commands. I need to run the
command through "/bin/sh -c command" to expand any possible shell
meta-characters.  Note this is exactly what the system(3) library call does.

Let's turn this into a more specific example. Solving this will hopefully
show me how to solve the generic case.
------
 
I have three files I want to set the environment variable FILES too:

file a
file'a
file"a

What should the string cmd be equal too below in order to get this to work?

char cmd[1024] ;

/*  Incorrect version - no quoting. */

strcpy(cmd, "FILES='file a file'a file"a';export FILES;rm $FILES") ;

...

execl("/bin/sh", "sh", "-c", cmd, (char *) 0) ;

-----
No solutions suggest unlink and removing the files one at a time please.
I need a generic solution. I need the correct quoted interpretation of:

FILES='file a file'a file"a'

that correctly works in the string above. Note that people have suggested
using putenv(3). I'd still have the same quoting problem there.

Thanks again for any help.
From: drl@vuse.vanderbilt.edu (David R. Linn)
Subject: Re: Windows NT
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Date: Tue, 5 Jan 1993 02:08:32 GMT

In article <50981@shamash.cdc.com> gsa@easyaspi.udev.cdc.com (gary s anderson) writes:
>In article <C0C2Aw.K9@vuse.vanderbilt.edu>, drl@vuse.vanderbilt.edu (David R. Linn) writes:
>|> 
>|> Including multiple users costs effort and if NT is positioned as a
>|> single-user, mulit-tasking system, why would MS expend that effort?
>|> Supporting multiple users requires the concept of multiple users be a
>|> part of the system design from the word "Go".
>
>I think a problem with this thread is understanding the difference
>between:  "single user" versus "one user at a time".

We are in violent agreement here.  I'm using multi-user to mean
that the operating system supports the concept of multiple, independent
users, each of whom can have different access rights to system resources.
Someone earlier in this thread made the claim NT supports this concept.
I expressed surprise since this seems contrary to what I have read about
NT and I asked for references that would tell me more about this, hopefully
in an authoritative manner.

>|> To me, the lack of multiple users is a serious deficiency.  In fact,
>|> it seems to me that lack of a distinction between the system privilege
>|> level, the super-user privilege level, and the regular user privilege
>|> level is a significant factor in the propagation of viruses in the
>|> personal computer world.
>
>Maybe you should look at NT and see if it solves the deficiencies
>you have just listed.  If not, comment constructively on what is missing.
>
>
>Disclaimer:  I have no affiliation with Microsoft.  I have read the
>various documents and have been experimenting with the beta
>version of NT.

I'd love to "look at NT", but I don't have access to NT at this point.
(This may change in the very near future.)  My primary goal in joining
this discussion was to find out what "documents" I should read.
-- 
David R. Linn, System/Mail/News Manager	| INET: drl@vuse.vanderbilt.edu
Disclaimer: I speak only for myself	| Phone: [+1] 615-343-6164
      "Some do, some don't and that's the way of the world."
From: dx3@ornl.gov (C. H. Decker)
Subject: dos under aix?
Organization: Martin Marietta Energy Systems
Date: Tue, 5 Jan 1993 14:22:55 GMT

Does anyone know of a dos under AIX product out there besides IBM's PCSIM?  
Thanks!  

Martin Marietta Energy Systems            |
Data Systems Research and Development     |                      
ATTN:  C.H. Decker                        |      Phone (615) 574-8014
1099 Commerce Park Dr.                    |      FAX   (615) 574-9374
Oak Ridge, TN  37831-7620                 |      Email DX3@ornl.gov
Newsgroups: comp.unix.dos-under-unix
From: drl@vuse.vanderbilt.edu (David R. Linn)
Subject: Re: Windows NT
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Date: Mon, 4 Jan 1993 14:16:08 GMT

In article <1993Jan03.203640.24282@Celestial.COM> ray@Celestial.COM (Ray Jones) writes:
>A Micorsoft "evangalist" (sp?) that gave a talk at one of our meeting
>(Unix user group) stated that NT would be marketed first in the server
>market, but was indeed capable of multi-user.  That feature would be
>marketed 9 months to a year after introduction.  But, what the hell, its
>just a rewrite of UNIX so they won't have to pay UNIX royalties, so why
>shouldn't it be multi-user.

Including multiple users costs effort and if NT is positioned as a
single-user, mulit-tasking system, why would MS expend that effort?
Supporting multiple users requires the concept of multiple users be a
part of the system design from the word "Go".

To me, the lack of multiple users is a serious deficiency.  In fact,
it seems to me that lack of a distinction between the system privilege
level, the super-user privilege level, and the regular user privilege
level is a significant factor in the propagation of viruses in the
personal computer world.
-- 
David R. Linn, System/Mail/News Manager	| INET: drl@vuse.vanderbilt.edu
Disclaimer: I speak only for myself	| Phone: [+1] 615-343-6164
      "Some do, some don't and that's the way of the world."
Newsgroups: comp.unix.dos-under-unix
From: mkunze@gwdgv1.gwdg.de
Subject: PC emulations for different UNIX Systems
Reply-To: mkunze@gwdgv1.gwdg.de
Organization: GWDG Goettingen, F.R.Germany
Date: Mon, 11 Jan 1993 09:19:26 GMT

Hi !

I searching for information on DOS emulations under UNIX (AIX,SunOS,ULTRIX).
We want to run a PC database program (written mainly in CLIPPER) under UNIX.
So we do not need graphics.
What programs are available for the different systems ? Is there anything 
usefull realeased to the public domain ?
TIA.


                          Michael



--------------------------------------------------------------------------------
Michael Kunze
Max-Planck-Institut f. biophys. Chemie
Goettingen
Germany

Internet: kunze@daniel.dnet.gwdg.de
--------------------------------------------------------------------------------
From: bjohnson@cs.wisc.edu (Brian J. Johnson)
Newsgroups: comp.unix.dos-under-unix
Subject: Re: PC emulations for different UNIX Systems
Date: 12 Jan 93 22:52:01 GMT
Organization: Univ. of Wisconsin @ Madison, CS Dept.

In article <KCO0MID@gwdu03.gwdg.de> mkunze@gwdgv1.gwdg.de writes:
   Hi !

   I searching for information on DOS emulations under UNIX (AIX,SunOS,ULTRIX).
   We want to run a PC database program (written mainly in CLIPPER) under UNIX.
   So we do not need graphics.
   What programs are available for the different systems ? Is there anything 
   usefull realeased to the public domain ?
   TIA.

Some DOS applications have UNIX equivalents which can use the DOS
files directly.  For instance, Ashton-Tate has a version of dBASE for
SunOS which I've used.  The data files and programs transfered over
fairly easily (I had to tweak a few things to allow multi-user
access), and the apps ran about 2 or 3 times faster on a SparcStation
IPC than on a 386 clone.  The user interface was a bear to get running
right at the time (1991), but supposedly Ashton-Tate has ironed that
out by now (we had a beta version.)

Brian J. Johnson
bjohnson@cs.wisc.edu
Newsgroups: comp.unix.dos-under-unix
From: ste@hudson.att.com (Shaun Erickson [94])
Subject: How do I access 2nd DOS partition under Merge?
Organization: Bell Laboratories
Date: Thu, 7 Jan 1993 17:31:39 GMT

Hi. I am running Dell Unix SVR4 2.2. I have 2 disks on my machine. The boot disk is set
up so that the first partition on it is a 1MB dos partition and the 2nd partition uses
up the remainder of the drive and contains my unix release. The dos partition is bootable
and contains only my config.sys and autoexec.bat, and they are set up such that they look
for all my dos software on my second drive which has only one dos partition on it which
uses up the entire drive.

When I boot up under dos, the 1MB slice on the 1st drive is my C: drive and my second drive
is my D: drive.

However, when I run dos under unix, via Merge, the 1st slice of my first drive is my E:
drive (as it should be) but I can't access my second dos drive at all. I would like it to
be available as my F: drive. I NEED access to that drive, as that is where ALL of my dos
software resides.

Can someone explain to me how to access it? Thanks!

-- 
 ******************************************************************************
 * Shaun T. Erickson                              Internet: ste@alux2.att.com *
 * Cap Gemini America (RV @ AT&T)                    UUCP : ...!att!alux2!ste *
 ******************************************************************************
Newsgroups: comp.unix.dos-under-unix,connect.audit
From: fredw@ibmpcug.co.uk (F K Weil)
Subject: Re: PC emulations for different UNIX Systems
Organization: The IBM PC User Group, UK.
Distribution: connect
Date: Mon, 11 Jan 1993 21:01:26 GMT

In article <KCO0MID@gwdu03.gwdg.de> mkunze@gwdgv1.gwdg.de writes:
>Hi !
>
>I searching for information on DOS emulations under UNIX (AIX,SunOS,ULTRIX).
>We want to run a PC database program (written mainly in CLIPPER) under UNIX.
>So we do not need graphics.

I have used     SOFT PC on SunOS 4.2.

It works fine for non windows apps.

Latest version I think supports VGA.


-- 
Fred Weil
Unix Rules OK
Newsgroups: comp.unix.dos-under-unix
From: udalski@astro.Princeton.EDU (Andrzej Udalski)
Subject: Function keys emulation under VP/ix
Originator: news@nimaster
Organization: Princeton University
Date: Mon, 11 Jan 1993 17:40:37 GMT


Hi,

Is it possible to emulate Function keys in VP/ix run in an "xterm"
window under X11 Windowing System? I log to a 386 machine (ISC SVR3 2.2)
from Sun and sometimes need to use DOS software that uses F-keys. 

please respond directly by e-mail to:

msz@sirius.astrouw.edu.pl

regards, 
Michal Szymanski
Warsaw University Observatory,
Warsaw, Poland.
From: jhurwitz@access.digex.com (j. hurwitz)
Newsgroups: comp.unix.dos-under-unix
Subject: Confused about Itell CPS and running UNIX.
Date: 11 Jan 1993 16:01:49 GMT
Organization: Express Access Online Communications, Greenbelt, MD USA
Distribution: all
NNTP-Posting-Host: access.digex.com
Keywords: 386 486 SX DX intel ?


I hear that you can run UINX Intel processors if you have a 386DX or better.
Does that go for 486as well?. Will a 486SX work?. 

I find Intels SX/DX stuff a pain. Does anyone know how I can find out once 
and for all, what the true differences are between all the 386/486 Intel 
processors?. 

Newsgroups: comp.unix.dos-under-unix,comp.unix.questions
From: dnb@sensor.zgrad.su (Dmitri Belosludtsev)
Subject: VP/ix and NetWare NFS
Organization: Firm "Orgland", Zelenograd, Russia.
Date: Wed, 6 Jan 1993 18:47:23 GMT
X-Newsreader: TIN [version 1.1 PL8]

Hello, everyone.
After successful install of Netware NFS on NW 3.11 server I can use
NW file system in Unix (ISC SysVr3.2 v.3.0), but in MSDOS Emulator
(VP/ix) mount directory is empty. I'm running VP/ix as root.
Can anybody explain such error? 

Thanks!
-- 
Dmitri Belosludtsev, Firm "Orgland", Zelenograd, Russia
e-mail: dnb@sensor.zgrad.su or dnb%sensor.zgrad.su@ussr.EU.net
        FIDO: 2:5020/60.6


Newsgroups: comp.unix.dos-under-unix
From: liuwu@acuson.com (Wu Liu)
Subject: Re: How do I access 2nd DOS partition under Merge?
Organization: Acuson; Mountain View, California
Date: Sat, 9 Jan 1993 00:09:54 GMT

ste@hudson.att.com (Shaun Erickson [94]) writes:
>Hi. I am running Dell Unix SVR4 2.2. I have 2 disks on my machine. The
>boot disk is set up so that the first partition on it is a 1MB dos
>partition and the 2nd partition uses up the remainder of the drive and
>contains my unix release. The dos partition is bootable and contains
>only my config.sys and autoexec.bat, and they are set up such that they
>look for all my dos software on my second drive which has only one dos
>partition on it which uses up the entire drive.
>
>When I boot up under dos, the 1MB slice on the 1st drive is my C: drive
>and my second drive is my D: drive.
>
>However, when I run dos under unix, via Merge, the 1st slice of my first
>drive is my E: drive (as it should be) but I can't access my second dos
>drive at all. I would like it to be available as my F: drive. I NEED
>access to that drive, as that is where ALL of my dos software resides.
>
>Can someone explain to me how to access it? Thanks!

You'll need to modify the Merge configuration so that the device that
corresponds to your D: drive is assigned the F: drive number.  Check
the Merge documentation for how to do this.

For SCO ODT 1.0/1.1, you'd add "+af:=/dev/dsk/1s4" to the default Merge
configuration file.  I don't remember what the procedure is for ODT 2.0
(newer version of Merge, with stuff moved around from before... :-().

You could use "dos +af:=/dev/dsk/1s4" from the command line, but that's
a bit cumbersome to type every time out.

BTW, the device name to use may be different.  The partition you want is
#4 on the second disk (System V disks start at 0).
-- 
Wu Liu                          Software Engineer, User Interface Group
liuwu@acuson.COM                Acuson
Newsgroups: comp.unix.dos-under-unix