Jump to content


Delegating owners


  • Please log in to reply
3 replies to this topic

#1 benchang

benchang

    Member

  • Members
  • PipPip
  • 10 posts

Posted 28 August 2019 - 07:27 AM

I'm trying to set up owner permissions for working with the protections table, and just wanted to check if I'm doing this right.  This is for a college course setup. Students are assigned to teams, and each team has a directory for their project.  Each team should only be able to access their directory, not those of all the other teams. The instructors (like myself) should be able to create the team project directories and grant permissions to the team members.  The instructors should not be superusers.

The 'owner' concept looks like exactly what I need for this.  Say I have a depot created for my course, Awesomeness 101.  If I have this line in the protections table:

owner	user	benchang	*	//Awesomeness-101-Fall-2019/...

then, as user benchang, I think I should be able to do this to then edit the protections for my students (?):

p4 protect //Awesomeness-101-Fall-2019

But, I get the "You don't have permissions for this operation" error.

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 917 posts

Posted 28 August 2019 - 02:14 PM

I haven't actually used this functionality, but the documentation says:

Quote

If a path argument is specified, and an owner entry with the same path exists, the sub-protections table for that path will be accessed instead of the main protections table.

Taking it at its word, I'd try running:

p4 protect //Awesomeness-101-Fall-2019/...


#3 Miles O'Neal

Miles O'Neal

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 28 August 2019 - 09:05 PM

Sam is (as usual) correct.
If you still see the problem, make sure you haven't inadvertently blocked access farther down in the table.

#4 benchang

benchang

    Member

  • Members
  • PipPip
  • 10 posts

Posted 29 August 2019 - 09:51 PM

View PostSambwise, on 28 August 2019 - 02:14 PM, said:

I haven't actually used this functionality, but the documentation says:



Taking it at its word, I'd try running:

p4 protect //Awesomeness-101-Fall-2019/...

Thanks - I tried that, but I got the same permissions error.

I'll reach out to our admin staff and ask them to look at the permissions table again.  Good to know we're on the right track!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users