[p4] How to protect new branch?
Stanton Stevens
sstevens at adobe.com
Sat Dec 9 16:56:29 PST 2006
Dave's suggestion shuts down all access to the branch, which is fine if
that is what you want. If you want them to still have read access, be
able to open files, but not submit them, use the "open" permission
level:
list user * * -//Depot/Project/BRANCH/...
open user * * //Depot/Project/BRANCH/...
You only need the first line if you have granted access to the area
higher in the protect table. Any line with -//whatever as the path
removes ALL access, including read, it doesn't matter what the line
starts with (read, write, etc.).
BTW, use of "user *", even in a line with - in it, enables automatic
account creation. Anyone who attempts to access the Perforce instance
will get an account, whether it has access or not. This can be a
security problem and a mess to clean up after a while. If you'd rather
that accounts were created by the Perforce admin, put everyone in one
group or other and use "group *", which doesn't enable automatic account
creation.
Stanton
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of David Weintraub
Sent: Saturday, December 09, 2006 4:45 PM
To: William Deegan
Cc: Perforce Users
Subject: Re: [p4] How to protect new branch?
There's really nothing to it...
write user * * -//Depot/Project/BRANCH/...
This will prevent anyone from writing to the branch any new changes.
You could also do this:
write group group-a * //Depot/Project/MAIN/...
And that will only allow people in group-a access to the MAIN branch.
Then you could put in a separate protection line for people who you
want to have a branch:
write group group-a * //Depot/Project/MAIN/...
write group group-b * //Depot/Project/BRANCH/...
On 12/9/06, William Deegan <bdbaddog at gmail.com> wrote:
> Greetings,
>
> Can someone tell me exactly what lines to add to my p4 protect to
> protect a branch
> from submit's?
>
> Thanks,
> Bill
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
--
David Weintraub
qazwart at gmail.com
_______________________________________________
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