Home
TeamSite
change group ownership of a file
yanSi
I'm trying to change the group ownership of a bunch of files. If I was to do it manually, I'd have to click on the "Properties" link of each file and type in the new group name in the "Group" field.
I was thinking of writing a script and changeing it that way using the iwextattr CLT but it appears that those fields that appear in the "File Properties" page of a file are not EAs. When I do iwextattr with the -l option one a file, nothing is returned so I'm guessing that there are no EAs on that file.
1. Can someone verify that the fields that appear in the properties pages are not EAs?
2. Does anyone have any ideas on how to write a script to change the group ownership on a bunch of files?
Find more posts tagged with
Comments
kaalraa
1. You reached the right point.. that the group name defined in properties of a file are not EA.
2. Use UNIX command
chgrp
in order to change the group for any particular file in loop
Migrateduser
It's far less intricate than perhaps you think. Just change the ownership on the file as you would any other actual, physical file. To change many at once, consider using the
find
command.
For instance:
chgrp -f Group1 `find /iwmnt/.../WORKAREA/templatedata -name "*.xml"`
changes the ownership of all .xml files underneath the path implied above. You could also use xargs and pipe the command but I digress
Dave
Migrateduser
Check out the last post in this thread. I wrote a small perl app that will recursively search through a folder and create a batch file that you can run later. The code changes the EA for the Category/DataType but you should be able to modify it to change the permissions as well.
http://devnet.interwoven.com/forums_vb/showthread.php?t=15082&forumid=11
yanSi
If I use Windows Explorer and check the properties of a file, the security tab shows the correct group ownership.
If I view the File Properties page in TeamSite, the Group owner is incorrect (is different from the group listed in Windows Explorer).
It seems to me that there are two sets for security policies. One at the file system level and one at the TeamSite level. Using the chgrp unix command or the DOS equivalent command in a script would change the security policy at the file system level right?
What should I do to change the security policy of a *file* at the TeamSite level?
I'm aware of iwchgrp but that's only used for workareas not files.
We are not using the TeamSite groups feature, we're only using groups in our Active Directory. I don't understand why Windows Explorer is showing one group and TeamSite is showing another group. Is this a bug you think?