Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!mit-eddie!mit-amt!adam From: adam@mit-amt.MEDIA.MIT.EDU (Adam Glass) Newsgroups: comp.os.rsts Subject: Re: RSTS/E Protection codes. Summary: Partial anwer - viewable? Message-ID: <2010@mit-amt.MEDIA.MIT.EDU> Date: 29 Mar 90 02:25:34 GMT References: <1727@expya.cs.exeter.ac.uk> Reply-To: adam@media-lab.media.mit.edu (Adam Glass) Organization: Ask me tomorrow. Lines: 66 cca@cs.exeter.ac.uk (Clive Carmock) writes: > I have benn using on old Systime system running RSTS/E. I wonder if > anyone could enlighten me slightly as to the file protection codes. I > would like to know how to change the protection code of an EXISTING > file. (That's easier than trying to change the protection code of a nonexistant file, let me assure you.) 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 ...will rename the file 'filename' (optionally proceed with ppn and device) to have the protection code 'protection'. The '/re' switch just means rename. '/co' is copy, '/de' delete, etc. You can add '/lo' and PIP will tell you what it did. Wildcards are allowed in most cases. You can also use the 'dest=source/switches' syntax to rename. This is the syntax to use if you want to copy. I'm not sure if what is about to follow is 100% correct. Maybe someone can help: bit 0 - Owner read (same project and programmer numbers) bit 1 - Owner write bit 2 - Group read (same project number, different programmer number) bit 3 - Group write bit 4 - World read (different project and programmer numbers) bit 5 - World write bit 6 - (Compiled? Privileged? What?) bit 7 - (Unused?) I think there's a different system for compiled code, but as I'm having a little trouble with my sysadmin at school (not MIT), I don't think I'll be able to correct this or get into it further. (Actually, he deleted all online help files and refuses to let me see the RSTS/E Programmer's Manual or the DCL guides, but as this isn't comp.os.rsts.bitch.about.sysadmins, I'll stop whining.) > Also if the codes do not permit execute Read OR write to a user - > does that cause the filename to be hidden as well?? No, you will not see the filename in the directory listing if this is the case. > i.e log in as a 1,* user and see all names login as another user and > see only some filenames. Exactly. > Many thanks for any help - by e-mail if possible. Aw, heck. Maybe others are interested. 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. In addition, assuming there is a basic plus sys call to elevate job priority, what is the number and the syntax? You might as well mail answers to me. I'm sure everyone *else* has access to the programmer's manual... hmmpf. Adam -- (adam@media-lab.media.mit.edu, soon to be ag??+@andrew.cmu.edu) "Didn't mean to make you cry... sometimes wish I'd never been born at all..."