0

I am doing maintenance to an old application written in vb that reads images files from and IFS (Integrated File System) folder.

I need to add a feature where users can delete images from this folder; however, I am getting the following error:

File Access Denied

Content Manager is ISERIES db2 database. I am even able to delete the record from the database, but concerning this image, how can I delete this? Any suggestions? I am new in AS400. I am still doing research about it but no success.

Regards,

mike
  • 1,233
  • 1
  • 15
  • 36
superfloyd
  • 97
  • 1
  • 10
  • Can you show the actual path to the document on the server? Especially the top-level directory (file system node) should be shown. Different file systems can have some particular restrictions. – user2338816 Dec 31 '14 at 02:27
  • this is the path for this document: \\qs102mz5m\Root\VIFLDR28\SUBDIREC.001 – superfloyd Dec 31 '14 at 21:17
  • That looks like a path from the client (e.g., Windows) rather than the path on the server. As such, it probably indicates the 'share' definition and may obscure the actual path on the server. Please show the path on the server. – user2338816 Jan 01 '15 at 02:19
  • Sorry, I am trying right now to get that server path; I am not that familiar with ISERIES. – superfloyd Jan 09 '15 at 22:54
  • Would the path be like /CWES007B/SUBDIREC.001/00007A54.001? – superfloyd Jan 09 '15 at 23:30
  • For what i am seeing in Iseries Nav, the folder path is /WaImages/VIFLDR28/SUBDIREC.001/* – superfloyd Jan 09 '15 at 23:40
  • That looks much more likely. I needed to see the top-level node to be sure of the file system. If the path started with /QDLS/* or perhaps something similar, there could be some tricky alternatives. Now we can be a little more certain. (And now I need to refamiliarize myself with the question.) – user2338816 Jan 12 '15 at 14:21
  • I was reading a file from IBM; there is this library : "EKDVIAPI.H" am i in the right track? – superfloyd Jan 13 '15 at 00:26
  • I assume that that is a source member made available to customers with Content Manager (DB2CM). It would likely contain sample C prototypes and definitions to use for your own programming that interacts with DB2CM objects. If any API exposes appropriate `delete` functions, it should be helpful. It's not clear yet if needed. Can you explain what you're actually trying to create? Does DB2CM not expose a `delete` function for users? Is this just one particular object that won't delete? Does the error show up in DB2CM or is it when any delete is attempted, e.g., via Windows Explorer? – user2338816 Jan 13 '15 at 06:01
  • The application that i am trying to modify, reads the file from the windows server path. So, my first attempt was to delete it the same way(getting the error previously shown). However, the file are IFS (Integrated File System) with read-only property. Therefore, I am assuming that the only way I have is to get connected to the ISeries Content Manager and delete this file and, that is what I am trying to do. – superfloyd Jan 13 '15 at 21:55
  • Read-only shouldn't make any difference; such objects can still be deleted. The problem would be in permissions/authorities for the user ID against the object, or maybe in DB2CM where it tries to execute your request and rejects it due to configuration. I would first check the system audit journal, QAUDJRN, for any related entries for the time to `delete` is requested. That should log permissions problems. (Note that when you add clarifying detail, it's helpful to edit your original question to add the new details. Comments may be deleted later.) – user2338816 Jan 14 '15 at 11:36
  • Show the code your using to delete the IFS files. – danny117 Jan 19 '15 at 16:25

1 Answers1

0


It sounds like your user profile has read only rights. Check with ls -la
If you aren't the owner, or don't have rights, you won't be able to delete the file.
At this point, the SETGID bit can be a solution. Try to discuss this issue with your admin.

Charly
  • 51
  • 3