Home
TeamSite
Permission problem
naumank
Hi,
I have a WA which owns by group1 and it has some users let us suppose user1 and user2, so whenever
any user creates any file or directory in teamsite such as file1.txt inside WA and then i go to shell and
see the permission of the file it always -rwxrwxr-x user1 other ... I dont' why other group assign to every
file and directory which i create inside the WA..even I have setting in iw.cfg file for main_user =root and main_group tsusers
but I haven't got clue that each time file or directory created inside the WA, other group is assigned to them and I checked the
permission of WA which is fine for user1 and group1.
If somebody has an idea please let me know i really appreciate your help.
Regards,
Find more posts tagged with
Comments
Adam Stoller
'other' is the user's *primary* group - and by default will be the group associated with any file or directory they create.
You can setup your submit.cfg file so that when the files are submitted, they will have their group ownership changed to 'group1' - which will fix things when the files are submitted.
You can also, since you're on Unix, do something like this (as root / via sudo):
find [areavpath] | xargs chgrp group1
find [areavpath] -type d | xargs chmod g+s
The first command will fix the permissions on all files and directories. (NOTE: This will mark *ALL* files in the workarea as "modified" - and they will need to be submitted - alternatively you could just find the files that don't have the correct permissions and just fix those)
The second command will make it so that any files or directories created within those directories will automatically inherit the group ownership fo the directory.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
naumank
ghoti,
that's fine chmod g+s worked fine. But my question is if any user like user1 with master or Adminstrator role create new branch and new workarea with the permission 775 user1(owner) and group1(group) and then after that user1 create file1.txt in a new workarea so that file suppose to inherit user1(owner) and group1(group) from the teamsite GUI but that's not happening because once the file is created user1(owner) and other(group) or some times tsusers(group) shows on the files and directory.
It should be happened directly through teamsite gui because some user who don't know unix etc they directly use teamsite and create branches, workareas and files, directory. But in my environment I am having this problem that folder and files in my specific work area are not inheriting the group name and unable to solve this issue. If I followed the step that you posted it resolved the issue from shell not from GUI. So if you understand the issue, please advise me to resolve.
Regard,
Edited by naumank on 08/30/04 03:11 PM (server time).
Adam Stoller
Just because the user's don't understand Unix semantics doesn't mean that TeamSite should behave differently [by default] at the file system level.
The default in Unix is that files are created with the users userid as owner and *primary* group as group-owner -- *unless* you have done something like a chmod g+s on the directory within which the file is being created to override those default semantics.
I think it would be nicer if TeamSite provided (through the GUI) the *option* to have either the owner or group bits sets on the workarea and directories within the workarea when you create the workarea so that you don't need an administrator (someone with 'root' access) to follow-up and do the work after the workarea has been created.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com