[p4] Protections Table Help

Stanton Stevens sstevens at adobe.com
Tue Feb 13 18:03:45 PST 2007


 
For those at server rev 2006.2: try out the Administration Tool in the
2007.1 P4V beta release. You can use it to help you determine the effect
of changes to the protect table. It is also quite handy for managing
users and groups. 

Stanton 

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Tetlow, Gordon
Sent: Tuesday, February 13, 2007 3:36 PM
To: Scott Marshall; perforce-user at perforce.com
Subject: Re: [p4] Protections Table Help

> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Scott 
> Marshall
> Sent: Tuesday, February 13, 2007 1:37 PM
> To: perforce-user at perforce.com
> Subject: [p4] Protections Table Help
> 
> Hi there,
> 
> I need to setup permissions so that all users in one of my groups have

> write access to the depot, but only read access to several specific 
> paths in the same depot. If I use an exclusionary rule then the paths 
> disappear from the users clients. I want them to be able to see the 
> paths and sync/view files but not make changes to them.
> 
> Any help would be appreciated.

You'll need to regrant permissions that you have taken away:

write group foobar * //path/to/write/...
list  group foobar * -//path/to/write/revoke/perms/...
read  group foobar * //path/to/write/revoke/perms/...

The important thing to know is that exclusionary mappings revoke *all*
permissions, no matter what permission you list (I always put list as
the permission on exclusionary mappings, just so I don't get confused).
There is some way to get around it (read p4 help undoc and look for
=read) but as it is unsupported, I don't recommend it.

-gordon

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list