Re: Executing run command for scripts as su
Posted in 2004
I was just about to suggest to check the path's directories permissions, Try to modify manually (vi for example) the file with the same user that runs the application, if you can , you should be able to modify the file from the application. Regards ----- Original Message ----- From: "aeg" <aeg@hiljo.nl> To: "Franz Gr'tzmacher" <franzg@biblesociety.co.za>; <informix-list@iiug.org> Sent: Thursday, June 24, 2004 9:11 AM Subject: RE: Executing run command for scripts as su > Don't know if SCO support this (it works on linux) > If your reports write to same directory > Then chmod this dir to set grpid > And chgrp of this dir to "the_informix_user" > Or create a new group and make your users > a member of this group > > The file will be owned by the group "the_informix_user" > > If they still can't access the file.. Then check the > Rights on the path to the file.. > > /Arthur > > > -----Oorspronkelijk bericht----- > Van: Franz Gr'tzmacher [mailto:franzg@biblesociety.co.za] > Verzonden: donderdag 24 juni 2004 12:13 > Aan: informix-list@iiug.org > Onderwerp: Executing run command for scripts as su > Urgentie: Hoog > > > Hi All > > Do anybody know how I can execute a script that need to modify root owned files as a normal user. > > I am executing a script with the run command from within 4gl program. This script generates an index.html file on my Sco UNIX server but the problem is that the file belongs to root. I have already set the files permissions to 777 but still my normal user can't overwrite the new file. > > Is there a way to run as su ??? > > Our versions: > SCO Unix vers 5.0.5 > Informix SE 5.08.UD1 > SQL vers 4.17.UC1 > RDS vers 4.17.UC1 > > Thanx > Franz Gr'tzmacher > > > > > sending to informix-list > > sending to informix-list > sending to informix-list