Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Helpful iwchgrp permissions command (TS 6.7.1 on Solaris 10)
System
In my long quest to understand how permissions work in TeamSite, I just used a unix command that may come in handy for some of you.
When we set up a workarea, we share it with a TeamSite group to allow / restrict access and then set the g+s bit on the top level directory of the newly created workarea to try to keep all files and directories in the workarea owned by the same TeamSite group that the workarea is shared with. This works well most of the time, but some processes don't honor these permissions ('copy to area' being one of them).
Occasionally, then, we need to reset permissions on the contents of a workarea. With TeamSite 6.7.1 (on Solaris 10, using TeamSite groups), we can't just run a recursive chgrp to get the desired results. We need to use the iwchgrp CLT and that doesn't have a recursive option (feature request?).
I'm happiest when I don't have to write scripts to do this kind of function, but I was just about to code up a Shell script to recursively call iwchgrp on all the assets in the workarea, when I (with some help) came up with this Unix command line to do the same thing:
find . * | xargs -t -i /interwoven/teamsite/bin/iwchgrp {}
I ran it from the top level of the workarea (substituting the desired TeamSite Group in) and it did the job. The -i option of xargs basically says 'use the array fed to me by find'. Good stuff.
Of course, it'd be better if I never had to run this type of thing in the first place and could ensure that all files / directories within a workarea always retained the correct group permissions (another feature request!)... I'd be happy to hear any suggestions along those lines!
Wally Box
Nike, Inc.
Find more posts tagged with
Comments
There are no comments yet