HP3000-L Archives

March 2013, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Gribbin, Francis J." <[log in to unmask]>
Reply To:
Gribbin, Francis J.
Date:
Wed, 27 Mar 2013 19:20:47 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (148 lines)
Hi John,

Maybe a job something like this will help:

!setvar a 1
!while a=1 do
!xeq chmod.hpbin.sys '-R 750 /ACCT/GROUP/dev36'
!pause 20
!endwhile
!EOJ

Frank Gribbin
Potter Anderson & Corroon LLP

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of John Pitman
Sent: Wednesday, March 27, 2013 1:09 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] access to posix files by a user who didnt create or doesnt own them

The files (spoolfiles) are copied by a user with top capabilities to  a posix dir under an MPE dir, as in

/ACCT/GROUP/dev36

But its NOT done in the shell - programmatically issued copy commands. Current method of using a batch job under same user who created the files and doing Chmod 777 dev36/*

Seems to work OK.

thanks


Regards,

John Pitman

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Keven Miller (3k)
Sent: Wednesday, 27 March 2013 2:29 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] access to posix files by a user who didnt create or doesnt own them

You didn't specify how the files got "put" into posix space.
You might want to look at    umask.
If FTP is used, there may be a umask option in FTP.
If a batch process just creates them, you might try entering the shell, first and set umask.

From this experiment that follows, you may want your umask set to 0.
/KEVENM/PUB#umask
0007
/KEVENM/PUB#touch kk
/KEVENM/PUB#ll kk
-rw-rw---- 1 MGR.KEVENM KEVENM 0 Mar 26 20:20 kk /KEVENM/PUB#umask 2 /KEVENM/PUB#rm kk /KEVENM/PUB#touch kk /KEVENM/PUB#ll kk
-rw-rw-r-- 1 MGR.KEVENM KEVENM 0 Mar 26 20:20 kk /KEVENM/PUB#umask 0 /KEVENM/PUB#rm kk /KEVENM/PUB#umask
0000
/KEVENM/PUB#touch kk
/KEVENM/PUB#ll kk
-rw-rw-rw- 1 MGR.KEVENM KEVENM 0 Mar 26 20:21 kk /KEVENM/PUB#rm kk


Keven Miller

----- Original Message -----
From: "John Pitman" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, March 26, 2013 07:39 PM
Subject: Re: [HP3000-L] access to posix files by a user who didnt create or doesnt own them


Donna,
Its actually the copy hfs to mpe that's failing first - the hfs files have no group and user permissions , and their owner is MGR.

In the end I am streaming a job that goes to shell then executes a script to

Chmod 777 /DIR1/DIR2/dir3/*

And this works, as long as I give the job time to finish....

Regards,

John Pitman

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Donna Hofmeister
Sent: Wednesday, 27 March 2013 11:02 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] access to posix files by a user who didnt create or doesnt own them

On 3/26/2013 4:18 PM, John Pitman wrote:
> I have a bunch of data files put in a Posix dir by a batch job running 
> under MGR. I need to have ordinary users do things with these - copy 
> to MPE space, read some data, build a command file, feed it to the 
> shell for more processing of the file in posix.
> Problem is that non-owners, or those with lower privs than MGR cant 
> access them....
>
> I have tried getting the create process to do a
>
> chmod 777 <filename>
>
> as an MPE command, but I get an error 9057:-
>
> Implied run command failed due to parser error. (CIERR 9057)
>
> I have tried writing a cmd file and going
>
> :sh.hpbin.sys < cmd
>
> But this doesn't seem to work either. Only works if I am in the shell, 
> and go
>
> ./cmd
>
>
> Can Anybody suggest a way around this please...??
> Regards,
>
777 is probably not good...

i believe you want to run the shell with "-k" for handing it a command (string or script).  to be certain, get into the shell and do 'man sh'.

just to keep on preaching...  there's probably no real reason to have to have a shell script just to do stuff to hfs-namespace files.  you can easily do "copy /dir/subdir/file, mpefile.group.account" (with all the
necessary variations).  the reverse will work as well.       - donna

--
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

CAUTION: This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited.
If you have received this message in error please notify RYCO Hydraulics Pty. Ltd. immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of RYCO Hydraulics Pty. Ltd.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

CAUTION: This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify RYCO Hydraulics Pty. Ltd. immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of RYCO Hydraulics Pty. Ltd.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2