Linux RHEL5, using sernet 3.6.x rpm packages. Starting in 3.6.8, smbstatus won't print the "Locked files" section anymore, unless you run is as root. Using "-d 2" or stracing reveals it's trying to read serverid.tdb (which it's a new thing in 3.6.8 it seems): open("/var/lib/samba/serverid.tdb", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = -1 EACCES (Permission denied) tdb(/var/lib/samba/serverid.tdb): tdb_open_ex: could not open file /var/lib/samba/serverid.tdb: Permission denied Was this done intentionally? The smbstatus man page of 3.6.7 is the same of 3.6.8, so this is not clear. Could the file be opened read-only instead of RW since the serverid.tdb file is 644? ==== Also, in the recent past another change caused the smbstatus section "PID Username Group Machine" to also be filled only if you run smbstatus as root due to opening /var/lib/samba/sessionid.tdb RW. ==== Are you supposed to always run smbstatus as root? ==== smb.conf I used during tests: [global] workgroup = WORKGROUP guest account = ftp preferred master = no os level = 1 map to guest = bad user [tmp] path = /tmp/smb guest ok = yes writeable = yes
*** This bug has been marked as a duplicate of bug 10127 ***