Bug 37854 - No read permissions for home directories if distribution module is used before first windows user login
No read permissions for home directories if distribution module is used befor...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Distribution
UCS@school 4.0
Other Linux
: P5 normal (vote)
: UCS@school 4.0 R2
Assigned To: Florian Best
Alexander Kramer
:
: 38196 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-20 09:30 CET by Sönke Schwardt-Krummrich
Modified: 2015-05-11 19:24 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2015-02-20 09:30:27 CET
The user's home directories in UCS@school will be automatically created by 
- the first windows/samba login or
- the distribution module or
- the exam module (to be more precisely: the distribution part of the exam module)

If no UCS@school user home directory exist at all (/home/$OU or 
/home/$OU/schueler does not exist), the home directory
/home/$OU/schueler/$UID will be created during the file distribution (distribution or exam module).

In this the following permissions are set:
drwxr-xr-x 4 root nogroup            /home/$OU
drwx------ 4 root root               /home/$OU/schueler
drwx------ 3 $UID Domain Users $OU   /home/$OU/schueler/$UID

So at least all students have no read/write access to their home directory.
This results e.g. in the use of temporary windows profiles.

Workaround: chmod 0755 /home/*/schueler
Comment 1 Florian Best univentionstaff 2015-04-16 14:53:48 CEST
*** Bug 38196 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2015-04-17 13:03:45 CEST
The permissions when creating home directories have been fixed.
Fix: svn r59919
Package: ucs-school-umc-distribution

tree -pug /home/$OU

├── [drwx--x--x root     root    ]  lehrer
│   └── [drwx------ teacher  Domain U]  teacher
│       └── [drwx------ teacher  Domain U]  Unterrichtsmaterial
│           └── [drwx------ teacher  Domain U]  project
│               └── [-rw------- teacher  Domain U]  file
└── [drwx--x--x root     root    ]  schueler
    └── [drwx------ student  Domain U]  student
        └── [drwx------ student  Domain U]  Unterrichtsmaterial
            └── [drwx------ student  Domain U]  project
                └── [-rw------- student  Domain U]  file
Comment 3 Alexander Kramer univentionstaff 2015-04-21 11:10:26 CEST
OK - drwx--x--x root     root    ]  lehrer
OK - drwx--x--x root     root    ]  schueler
OK - also tested with win7 client, no temp profil and all projects exists
OK - yaml changelog
OK - debian changelog
Comment 4 Florian Best univentionstaff 2015-05-11 19:24:58 CEST
UCS@school 4.0 R2 v1 has been released:
http://docs.univention.de/release-notes-ucsschool-4.0R2v1-de.html

If this error occurs again, please use "Clone This Bug".