× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 18/04/2007, at 4:55 AM, Eric Kempter wrote:

What controls file permissions on the IFS? We have written a PHP applications that allows users to upload images (.jpgs) from their desktop to the IFS. The upload to the IFS works fine but the file on the IFS ends up without *public Read / Execute permissions so the user can not view the image after the upload. We are on V5R3, using PHP and Apache via the PASE shell. Any assistance is appreciated.

In general, public permissions on a stream file are inherited from the public permission of the parent directory. Thus if you want the stream files to have public *RX then you must ensure the public have *RX to the parent directory.

Note that there are many ways to change this behaviour and the various stream file creation methods (open, fopen, edtf, touch, etc.) all do it differently.

You can also force the required permissions using CHGAUT, chmod, fchmod, etc. or set the appropriate mask in your job prior to file creation via umask. You could also change the stream file owner to something suitable.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\
Fax: +61 3 9419 0175 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.