Date: Tue, 26 Nov 1996 07:56:58 GMT
Reply-To: Stewart Ravenhall <s.g.ravenhall@OPEN.AC.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Stewart Ravenhall <s.g.ravenhall@OPEN.AC.UK>
Organization: The Open University
Subject: Re: Unix: file mode of datasets created by SAS
Cynthia Stetz <Cynthia_Stetz@PCMAILGW.ML.COM> wrote in article
<9610138479.AA847926023@pcmailgw.ml.com>...
> But, all files I
> create from within SAS retain the Default permission of 666!
Could you alias the command "sas" to run SAS and then check for SAS files
you've just created and amend their permissions?
In your .cshrc (.sh, .ksh, whatever: you might need to amend it for these
shells) put something like the following:
alias sas "sas \!*;(find ~ -type f -name '*.s??01' -user `/usr/ucb/whoami`
-perm 666 \( -mtime 0 -o -ctime 0 \) -exec chmod 655 {} \;&)"
I know it's about as subtle as a brick, but I don't know any other way of
doing it. If you've got any questions on it, or you just think it's
rubbish, give me a yell.
Alternatively, if someone gives you a more sensible suggestion, I'd love to
know!
Stewart Ravenhall,
Milton Keynes,
England.
s.g.ravenhall@open.ac.uk