From BUG#6473 "net rap session" cannot get username I examined with Samba 3.5.8 + the patch for BUG#8009. "net rap session" now can get username so BUG#8009 will be fixed, but the output of "net rap session" is still wrong. To examine, I create a simple share and put a MS-Word file and open it. The output of smbstatus seems good: ========== # smbstatus Samba version 3.5.8 PID Username Group Machine ------------------------------------------------------------------- 15685 monyo users mizuka (::ffff:192.168.135.1) Service pid machine Connected at ------------------------------------------------------- monyo 15685 mizuka Thu Mar 17 23:58:41 2011 IPC$ 15685 mizuka Thu Mar 17 23:58:44 2011 IPC$ 15685 mizuka Fri Mar 18 00:05:20 2011 Locked files: Pid Uid DenyMode Access R/W Oplock SharePath Name Time -------------------------------------------------------------------------------------------------- 15685 1000 DENY_WRITE 0x2019f RDWR NONE /home/monyo tmp/test.doc Fri Mar 18 00:05:20 2011 ========== The word file is opened and locked. But the output of "net rap session" displays 0 files are opened and "Opens Idle time" is always 00:00:00, although the username is correctly set: ========== # net -U root%password -S localhost rap session Computer User name Client Type Opens Idle time ------------------------------------------------------------------------------ \\mizuka monyo Unknown Client 0 00:00:00 \\lenny5 root Unknown Client 0 00:00:00 ========== And "net rap session info" returns nothing: ========== # net -U root%password -S localhost rap session info \\\\mizuka Share name Type # Opens ------------------------------------------------------------------------------ ==========
Created attachment 6302 [details] Patch That's a server issue. Against Windows it works fine. The attached patch is on its way to master, I don't think we'll fix this in 3.5.
Will be fixed in 3.6. Closing as fixed.