Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Newly created file is owned by iwui
Ankur979
We are using TeamSite Templating 5.0.2 on Solaris. In one of our CGI scripts, we are creating a new DCR by using touch. system("touch /iwmnt/default/main/IAS/ED/WORKAREA/OPA-work/templatedata/PublicAffairs/PressReleases/data/$temp_Month-$temp_Year/$temp_Date"); However, we run into a file ownership issue because the newly created DCR is owned by "iwui". We have tried unsuccessfully to use chown. How do you do this?
Find more posts tagged with
Comments
sajiddc
That is indeed a surprise for me. I just tested the touch and a new file creation through a custom menu item. However, I do not get iwui as the owner. I am getting my username as the owner. Are you using a cgi-task or a custom menu item? Or is it a cgi call-out since I see that you have mentioned templating.
Migrateduser
I wonder if it has to do with the fact that you are using the system call instead of a perl built in.
If it is a callout from the dct screen maybe try and capture the info being passed (say have it call a modified show_env.cgi to just print out the env.).
Ankur979
We needed to add iw_cgi_wrapper.cgi for all our cgi calls, which impersonates the currently logged in TeamSite user. This works.