Since refactoring work in d6a687250625b62242efc8be0aa50ffc448a503a smbstatus can no longer be called sucessfully as non-root user. The sessionid.tdb is created 0644 as root by smbd usually but smbstatus now tries to open that tdb with O_RDWR which fails with access denied. Attached patchset adds an optional mode to open the sessionid.tdb readonly to make cmdline tools like smbstatus and net still work like previous 3.6.x versions.
Created attachment 9191 [details] patch for v3-6-test
Comment on attachment 9191 [details] patch for v3-6-test LGTM
Ok, Karolin, please add to v3-6-test. This is NOT needed for for 4.x as in 4.x only root can access session related tdbs (which then contain sensitive key material).
*** Bug 9432 has been marked as a duplicate of this bug. ***
Created attachment 9192 [details] patch for v3-6-test (fixed typos) Sorry, had some typos in printf error output. This patch has them fixed.
Comment on attachment 9192 [details] patch for v3-6-test (fixed typos) LGTM
Pushed to v3-6-test. Closing out bug report. Thanks!
Still some patches missing to also display sharedmodes, etc.
Created attachment 9195 [details] followup patches for v3-6-test
Comment on attachment 9195 [details] followup patches for v3-6-test What is the deeper reason behind these patches? What functionality was not covered in the first set, what am I supposed to test further on? Is there any further followup patch in the queue?
Comment on attachment 9195 [details] followup patches for v3-6-test LGTM
(In reply to comment #11) > Comment on attachment 9195 [details] > followup patches for v3-6-test > > LGTM Pushed to v3-6-test. Closing out bug report. Thanks!