-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with users deleted and then recreated #189
Comments
@pierrepo are you able to reproduce this with test users? Also were the users created with the procedure in https://docs.plasmabio.org/en/latest/install/users.html? Normally the permissions of the home subdirectory are set on startup here: plasma/tljh-plasma/tljh_plasma/entrypoint/entrypoint.sh Lines 34 to 35 in a74d7a0
|
As far as I remember, I got this error only when creating users by batch (from a CSV file). |
I've created/deleted/recreate users on a fresh new VM. Step 1. Create 5 new users in batch:
|
Every academic year, we delete old student accounts and create new ones. Logins are the same and are recycled from one session to the next (
stu-megm1-01
,stu-megm1-02
...)We noticed an issue when account are re-created. For instance, with the account
stu-megm1-50
:$ ls -al /srv/home/stu-megm1-50 total 32 drwxr-xr-x 5 stu-megm1-50 stu-megm1-50 4096 sept. 5 20:39 . drwxr-xr-x 82 root root 4096 sept. 3 16:48 .. -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 220 févr. 25 2020 .bash_logout -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 3771 févr. 25 2020 .bashrc drwxrwxr-x 3 stu-megm1-50 stu-megm1-50 4096 sept. 5 20:39 .cache drwxrwxr-x 12 stu-megm1-50 stu-megm1-50 4096 sept. 5 20:39 introduction_plasma drwxrwxr-x 3 stu-megm1-50 stu-megm1-50 4096 sept. 5 20:39 .local -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 807 févr. 25 2020 .profile
The user
stu-megm1-50
opened the environmentintroduction_plasma
and the corresponding directory has been created in his home directory with proper rights and owner.After this account has been deleted and recreated, the user
stu-megm1-50
is not able to load the same environment:The error message is
If we look at his home directory:
$ ls -al /srv/home/stu-megm1-50 total 24 drwxr-xr-x 3 stu-megm1-50 stu-megm1-50 4096 sept. 5 20:58 . drwxr-xr-x 82 root root 4096 sept. 5 20:55 .. -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 220 févr. 25 2020 .bash_logout -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 3771 févr. 25 2020 .bashrc drwxrwxr-x 12 stu-megm1-49 stu-megm1-49 4096 sept. 5 20:58 introduction_plasma -rw-r--r-- 1 stu-megm1-50 stu-megm1-50 807 févr. 25 2020 .profile
The directory
introduction_plasma
corresponding to the selected environment has been created, but with the wrong owner (stu-megm1-49
instead ofstu-megm1-50
), thus preventing Jupyter Lab to be correctly loaded with this environment.It looks like a memory of old UIG/GID is kept and improperly used with recycled logins.
The text was updated successfully, but these errors were encountered: