Author Topic: arsload and deleting files  (Read 3630 times)

itbos

  • Guest
arsload and deleting files
« on: January 24, 2014, 09:17:45 AM »
I use a od daemon and run the arsload and pass it parameters.  This all works fine until it comes time to delete the file after processing and indexing it.  I noticed that the user id I use (AIX system btw) has access to the files being placed into the loading area and can process them but when it comes time to delete them beause this specific user id only has access via the group permissions it reports an error deleting the file .. but the file is actually deleted ... and i think that is because if you are nothe owner of the file you are prompted .. make sense?  It there a way to use arload to delete the file after processing without having it prompt?

Thanks!

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: arsload and deleting files
« Reply #1 on: January 25, 2014, 07:54:31 AM »
Try changing the umask for the user ID that owns the files.  The umask will determine which file permissions get set when a new file is created.  Talk to your UNIX system administrator for more information about how it works and how to implement the change.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

itbos

  • Guest
Re: arsload and deleting files
« Reply #2 on: January 27, 2014, 08:25:34 AM »
My issue is that the user id running CMOD has group access to the file to delete it but there is a prompt to delete (Y or N) that is where I believe the error occurs, RC=-1.  Many different apps dump files that are accessible by the CMOD user, but this prompt to delete is what I wish to over come.  Any ideas?

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1209
    • View Profile
Re: arsload and deleting files
« Reply #3 on: January 27, 2014, 09:29:18 AM »
On z/OS, I point STDIN to a file which just contains the letter y to respond to the prompt in batch:

http://www.odusergroup.org/forums/index.php?topic=690.0

Ed
#zOS #ODF

jeffs42885

  • Guest
Re: arsload and deleting files
« Reply #4 on: January 27, 2014, 11:37:30 AM »
At my last company, We used the same account that runs ARSSOCKD which i believe is setup with sudo access to start ARSSOCKD/ARSOBJ, and in the OnDemand admin we have the same account defined with Administrator access.

Hope that is of some help.

rick

  • Guest
Re: arsload and deleting files
« Reply #5 on: January 27, 2014, 09:44:42 PM »
My issue is that the user id running CMOD has group access to the file to delete it but there is a prompt to delete (Y or N) that is where I believe the error occurs, RC=-1.  Many different apps dump files that are accessible by the CMOD user, but this prompt to delete is what I wish to over come.  Any ideas?

In that case, I guess arsload is trying to the OS native remove command rather than removing it in the program. Can you try to create a alias for "rm" as "rm -f" and set it is as default path?