Permissions on a SCO Unix exported file

Mike Schwartz mschw at athenet.net
Thu Oct 18 11:19:50 PDT 2007


Brian White wrote:

> then: export ascii out = (fn)   r=\n  f=\t
> then: return
> @once:
> then: fn(128,*,g)="/u/" {@ID {"/HDrun.txt"
> then: system ">"<fn

     User "filepro" probably just doesn't have permission to create files in
the individual user subdirs (IE, /u/mike), even though all users are members
of the groups "filepro" and "group" and user filepro is a member of the
groups filepro and group.  For example, the permissions on "mike" are
drwxr-xr-x (note the lack of a "w" for group), so this code is not working,
even though we are in the same groups:  

25  -------   -   -   -   -   -   -   -   -   -  -   -   -
        If:
      Then: fn(40,*)="/u/" {@ID {"/HDpurch" {fm {".txt" {""
26  -------   -   -   -   -   -   -   -   -   -   -   -   -
        If:
      Then: system ">" {fn {""
27  -------   -   -   -   -   -   -   -   -   -   -   -   -
        If:
      Then: system "chmod a+rwx" <fn {""
28  -------   -   -   -   -   -   -   -   -   -   -   -   -
        If:
      Then: export ascii HDO = (fn)   r=\n  f=\t

     I can't track it down any further using debug, because filePro appears
to be attempting to create the output files as specified on the output
statements -before- any other lines of code are executed.  For example, if I
start dreport with -db, at the first debug prompt that appears, I set a
breakpoint on line 25, but as soon as I press "C" to continue, I get the -1
filePro error.

    This leads me to believe that *nothing* I do inside my filePro output
processing code (even a "system "asroot"" file creation command) will have
any effect on this situation...

    Hmmm... maybe I could execute the "asroot" file creation command and
chmod if I put it into a sort/selection processing table... 

    (I don't know if these permissions on /u/mike are "normal" for SCO
systems, but I wouldn't be permitted to change them for this particular
customer, anyway...)

Thanks,

Mike Schwartz
  



More information about the Filepro-list mailing list