Bug 46641 - Windows profile not loaded during student logon due to old smbd keeping lock
Windows profile not loaded during student logon due to old smbd keeping lock
Status: CLOSED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: Samba 4 - Slave PDC
UCS@school 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
https://serverfault.com/questions/204...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-13 18:36 CET by Arvid Requate
Modified: 2023-06-12 15:39 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
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 Arvid Requate univentionstaff 2018-03-13 18:36:31 CET
Observed during UCS@school 4.3 product tests: Windows profile not loaded during student logon because a previous smbd is keeping an exclusive lock on the user profile.

Procedure: Student account logs on successfully to windows client first time and changes password sucessfully (alt-ctrl-del). Then the Admin opens UMC and sets the must change password flag. Student logs off and on again. Password change dialog works. But the profile doesn't load.

After rebooting the Windows client there is still an smbd running for the user:

=======================================================================
root@slave71:~# smbstatus 

Samba version 4.7.5-Debian
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
19126   WIN7PRO230$  Domain Computers 10.200.8.230 (ipv4:10.200.8.230:53266)    SMB2_10           -                    HMAC-SHA256          
19566   WIN7PRO230$  Domain Computers 10.200.8.230 (ipv4:10.200.8.230:49157)    SMB2_10           -                    HMAC-SHA256          
19125   schueler1    Domain Users school2 10.200.8.230 (ipv4:10.200.8.230:53265)    SMB2_10           -                    HMAC-SHA256          
19117   schueler1    Domain Users school2 10.200.8.230 (ipv4:10.200.8.230:53257)    SMB2_10           -                    HMAC-SHA256          

Service      pid     Machine       Connected at                     Encryption   Signing     
---------------------------------------------------------------------------------------------
schueler1    19117   10.200.8.230  Di Mär 13 17:22:27 2018 CET     -            HMAC-SHA256 
IPC$         19126   10.200.8.230  Di Mär 13 17:22:53 2018 CET     -            HMAC-SHA256 
Marktplatz   19117   10.200.8.230  Di Mär 13 17:22:30 2018 CET     -            HMAC-SHA256 
IPC$         19125   10.200.8.230  Di Mär 13 17:22:53 2018 CET     -            HMAC-SHA256 
IPC$         19566   10.200.8.230  Di Mär 13 17:31:51 2018 CET     -            HMAC-SHA256 
school2-1A   19117   10.200.8.230  Di Mär 13 17:22:30 2018 CET     -            HMAC-SHA256 

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
19117        2015       DENY_NONE  0x100080    RDONLY     NONE             /home/school2/groups/klassen/school2-1A   .   Tue Mar 13 17:22:30 2018
19117        2015       DENY_WRITE 0x12019f    RDWR       NONE             /home/school2/schueler/schueler1   windows-profiles/default.V2/NTUSER.DAT   Tue Mar 13 17:22:53 2018
19117        2015       DENY_NONE  0x120089    RDONLY     EXCLUSIVE+BATCH  /home/school2/schueler/schueler1   windows-profiles/default.V2/ntuser.ini   Tue Mar 13 17:22:53 2018
19117        2015       DENY_NONE  0x100080    RDONLY     NONE             /home/school2/schueler/schueler1   .   Tue Mar 13 17:22:30 2018
19117        2015       DENY_NONE  0x100080    RDONLY     NONE             /home/school2/groups/Marktplatz   .   Tue Mar 13 17:22:30 2018
=======================================================================
Comment 1 Arvid Requate univentionstaff 2018-03-13 18:40:27 CET
While writing this bug report the smbd process disappeared and user profile stored and loaded successfully.
Comment 2 Jan-Luca Kiok univentionstaff 2023-06-12 15:32:09 CEST
This issue has been filed against UCS@school 4.3 or earlier.

UCS 4.3 is out of maintenance and UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.