question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submission Username Customization

See original GitHub issue

I use jupyterhub with a dockerspawner so that each jupyter notebook server is run in a separate container. All containers have a single user called jovyan so that when get_username() is called for submitting an assignment, it’s always jovyan. It would be nice if there was a way to change that. Jupyterhub deals with this with the user traitlet and dockerspawner has an environment variable (JPY_USER) set.

Any ideas?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jhamrickcommented, Jan 21, 2017

The exchange directory has carefully crafted permissions to prevent students from accessing and modifying each others’ assignments. It’s not well document, but hopefully we won’t need such a complicated solution soon anyway 😄

Here’s the detailed explanation of how it works:

The toplevel exchange directory has 777 permissions, but the subdirectories have different permissions. The inbound directory is writable by all, but not readable or listable by anybody but the instructor. This has the effect that students can write to the directory in order to submit their assignments, but cannot see anybody else’s submissions. The outbound directory is readable by all but not writable by anybody but the instructor, so that only the instructor can release assignments:

$ ls -l /srv/nbgrader/exchange/cogsci131/
total 272
drwx-ws-wx 3968 instructor instructor 270336 Jan 17 04:22 inbound
drwxr-xr-x   21 instructor instructor   4096 Dec  5 16:56 outbound

Submission directories in the inbound directory are readable and writeable by everybody (though note because the inbound directory is not readable by anyone except the instructor, no one but the instructor can actually read or list these directories):

$ ls -l /srv/nbgrader/exchange/cogsci131/inbound/
total 15864
drwxrwxrwx 4 student1 instructor 4096 Dec 12 07:46 student1+final+2016-12-12 07:46:33 UTC

But the individual files within the submission directories are writable only by the student, which means that even if another student tried to remove the submission directory, they would not have permission to remove the files inside it:

$ ls -l /srv/nbgrader/exchange/cogsci131/inbound/student1+final+2016-12-12\ 07\:46\:33\ UTC/
total 524
-rw-r--r-- 1 student1 instructor   3946 Dec  5 16:56 0 - Index.ipynb
...

Released assignments are only writable by the instructor, but readable by everybody:

$ ls -l /srv/nbgrader/exchange/cogsci131/outbound/
total 76
drwxr-xr-x 4 instructor instructor 4096 Dec  5 10:23 final
$ ls -l /srv/nbgrader/exchange/cogsci131/outbound/final/
total 144
-rw-r--r-- 1 instructor instructor  3946 Dec  5 16:56 0 - Index.ipynb
0reactions
nthierycommented, Sep 18, 2019

For reference: student id customization was implemented in #1098.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lesson 3: Customize your account - Submittable
Submittable 101 will introduce you to Submittable's system for managing applications and submissions. This is Lesson 3: Customize your account .
Read more >
How can I customize the submission ID? - Jotform
Unfortunately it is not possible to customize the submission ID, as they are generated automatically. However, we do have a widget that you ......
Read more >
Submission form customization without added complexity or ...
With legacy peer review systems, setting up a new submission form or adding customizations to an existing one is often a somewhat harrowing ......
Read more >
Add a custom submission message to your form - Support
To create a customized personalized post submission message, 1. Navigate to the Settings page of your form (which can be accessed by clicking...
Read more >
Customize Dispatched, Saved, and Submitted Form Names ...
Customize Dispatched, Saved, and Submitted Form Names with Data Record Naming. About; How a customized name improves search results; Best practices for Data ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found