[p4] Protections Table Help

Robert Cowham robert at vaccaperna.co.uk
Tue Feb 13 14:28:06 PST 2007


The following works for me:

Write group all * //depot/...
List group restricted * -//depot/some/path/...
Read group restricted * //depot/some/path/...

So take away rights and then give back lesser ones.


C:\bruno_ws\main\www\perforce\press>p4 groups laura
all
restricted

C:\bruno_ws\main\www\perforce\press>p4 groups carrie
All

Protections:
        write group all * //depot/...
        read group restricted * -//depot/main/www/...
        read group restricted * //depot/main/www/...

C:\bruno_ws\main\www\perforce\press>p4 -u laura edit pr1.html
pr1.html - no permission for operation on file(s).

C:\bruno_ws\main\www\perforce\press>p4 -u laura edit //depot/main/jam/jam.c
//depot/main/jam/jam.c#35 - opened for edit

C:\bruno_ws\main\www\perforce\press>p4 -u carrie edit pr1.html
//depot/main/www/perforce/press/pr1.html#3 - opened for edit

QED
Robert

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> Scott Marshall
> Sent: 13 February 2007 21:37
> 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.
> 
> Thanks,
> 
> -Scott


More information about the perforce-user mailing list