Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!njin!spcvxa!terry From: terry@spcvxa.spc.edu (Terry Kennedy) Newsgroups: comp.os.rsts Subject: Re: RSTS/E Protection codes. Message-ID: <76.26116247@spcvxa.spc.edu> Date: 29 Mar 90 01:17:59 GMT References: <1727@expya.cs.exeter.ac.uk> <2010@mit-amt.MEDIA.MIT.EDU> Organization: St. Peter's College, US Lines: 65 In article <2010@mit-amt.MEDIA.MIT.EDU>, adam@mit-amt.MEDIA.MIT.EDU (Adam Glass) writes: > I'm not sure how modern the utilities I have at shool are, but I'll > give it a shot. I'm going to assume you have PIP... > > pip filename/re If you're on version 9.0 or higher of RSTS, the DCL syntax is: SET FILE/PROTECTION=n filnam.typ > I'm not sure if what is about to follow is 100% correct. Maybe someone > can help: For non-executable files: 1 - Protect against reading by owner 2 - Protect against writing by owner 4 - Protect against reading by group 8 - Protect against writing by group 16 - Protect against reading by world 32 - Protect against writing by world 64 - Executable program 128 - Protected file, overwrite when deleted For executable files: 1 - Protect against execution by owner 2 - Protect against read/write by owner 4 - Protect against execution by group 8 - Protect against read/write by group 16 - Protect against execution by world 32 - Protect against read/write by world 128 - Program with privileges (but not .COM files) If you can't read/write/execute a file and it is not in your directory, you won't see it in a directory listing. Remember that privileged users (V8 or earlier) or users with GREAD/GWRITE/WREAD/WWRITE can view/execute your files regardless of protection. Other privileges allow this as well, but make it a little harder (RDNFS, etc...) > Would someone mind enlightening me as to what sys call 4 does from > basic plus? It seems to flush the keyboard buffer, but I know it does > other things in the process. SYS(CHR$(4%)) is ODT submode (single-character I/O). > In addition, assuming there is a basic > plus sys call to elevate job priority, what is the number and the > syntax? SYS(CHR$(6%)+CHR$(-22%)) You need TUNE priv to execute this call. You should also verify that the rest of the call is filled with 0's in case the call is ever enhanced to take more parameters. > You might as well mail answers to me. I'm sure everyone *else* > has access to the programmer's manual... hmmpf. No big deal - it's not like we're drowning under the article load or any- thing. 8-) Terry Kennedy Operations Manager, Academic Computing terry@spcvxa.bitnet St. Peter's College, US terry@spcvxa.spc.edu (201) 915-9381