gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] File permissions


From: John Culleton
Subject: Re: [open-cobol-list] File permissions
Date: Sat, 14 Mar 2009 16:12:25 -0400
User-agent: KMail/1.9.10

On Saturday 14 March 2009 03:19:02 pm Alain wrote:
> Very interesting, but I have nothing to do with IBM's
> cobol -unless I love IBM wich support Linux and give me
> some years ago a T-shirt with TUX-
> For me the fist problem is depending of what Linux
> distribution you use :
> - Red-Hat and derived (Mandriva, fedora ...) don't use
> the group permission,
> the only distro correct for permissions I know is
> Slackware and derived (Zenwalk, .. ?)
> with this you should not have permission problems if you
> correctly use the group permissions and it is not
> necessary to use a system command : UNIX/LINUX do that
> for you.
>
> Regards
>
> Eurlix
>
>
> On Sat, 14 Mar 2009 13:10:14 -0500
>
> "Bill Klein" <address@hidden> wrote:
> > List (Brian, John, and Roger)
> >   I don't know if this is of any interest to OpenCOBOL,
> > but IBM's Enterprise COBOL has a facility that COULD be
> > a model for doing this in "native COBOL".
> >
> > In IBM's COBOL, you can explicitly set an environment
> > variable (using putenv or equivalent LE service) to set
> > an association between the name in the Select/Assign
> > clause with the "physical file name" *AND* for specific
> > "system attributes" for new files.  See:
> >  
> > http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/i
> >gy3lr40/4.2.3.1 and
> >  
> > http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/i
> >gy3lr40/4.2.3.2
> >
> > OBVIOUSLY, the kind of thing that IBM MVS need/want to
> > "define" is totally irrelevant for OpenCOBOL
> > environment.  On the other hand, using this as a
> > model,, couldn't one explicitly set permission mode for
> > "created files" if you "associated" the COBOL file name
> > with an environment variable that included the
> > information?
> >
> > As I say, this is "just a thought" and NOT something
> > that I am asking for - much less asking for as a high
> > priority.
> >
> > > -----Original Message-----
> > > From: Brian Tiffin [mailto:address@hidden
> > > Sent: Saturday, March 14, 2009 12:42 PM
> > > To: address@hidden
> > > Subject: Re: [open-cobol-list] File permissions
> > >
> > > Hi John,
> > >
> > >    I don't think this can be done with COBOL syntax. 
> > > But aside from calling "SYSTEM" with a chmod command
> > > after the fact, you can (on POSIX
> > > systems) modify the file creation mask.  Take a look
> > > at the man page for
> > > umask.  This will influence the default file creation
> > > settings before the
> > > fact.
> > >
> > > Cheers,
> > > Brian
>
I have a COBOL program that is called in a script that runs 
overnight via cron, on my Slackware system. It updates two 
html files which are then sent upstream to my two websites.   
Therefore the batch mode ftp update program (ncftpput ) 
must be able to read these two files. I don't know what 
user the ftp program runs as. So I just stuck two chmod 666 
statements into the script.  All the files are owned by my 
user name. I was getting error messages before I put in the 
chmod statements. 



-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]