# Sample p4.protect file
#
# p4.protect files can be submitted anywhere in the Perforce depot.
# There are three sections, which may be omitted: default, enforce and protect.
#
# The protect lines have the same syntax as for the p4 protect command
# with one exception: paths may not start with a '/'. All paths are relative
# to the directory of this file.
#
# Super user privileges cannot be given here.
#
default:
# these permissions can be overridden by a p4.protect file
# that is located deeper in the hierarchy
open group developers * ...
# note that the following line does *not* grant write access
# to this p4.protect file. Use the protect section for that.
write user jane * ...
write user joe * documentation/...
enforce:
# these permissions override those set in a p4.protect file
# that is located deeper in the hierarchy
write user * * -FrozenTree/...
protect:
# Use this section to grant write permissions for the
# p4.protect files.
# Every line must end with p4.protect
write user jane * p4.protect
write user jane * .../p4.protect