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

[McIDAS #QEJ-826940]: Scour

Hi Paul,

> We have ldm running processes in mcidas with a kickoff environment. It
> runs a mcidas batch file that saves images. Since ldm runs the process,
> the file made is owned by ldm.
> We also have those same scripts run via a web page php script. The owner
> of THAT process is www-data and hence the file is owned by www-data with a
> 755 ownership mode. When the scour script is run via crontab on ldm, the
> images owned by ldm are deleted but the files owned by www-data are not.
> How do I solve this problem?

First, a few questions:

- is your scour action running as the user 'ldm'?

- are the images created by ldm and www-data being written to
  the same directory?

- have you put ldm and www-data in the same group?

You can fix the problem by changing the read/write/execute mode of
the files that www-data is creating in either of two ways:

- set 'umask' in the script being run by www-data so that the
  file(s) that the script creates can be deleted (i.e., written)
  by 'ldm' (assuming that ldm is running the scour process

- run the chmod command in the script run by www-data on the
  file(s) it has just created

I would try setting 'umask'.  A reasonably good reference for 'umask'



Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
Unidata HomePage                       http://www.unidata.ucar.edu

Ticket Details
Ticket ID: QEJ-826940
Department: Support McIDAS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.