Bug 11012 - smbstatus can only work as root
smbstatus can only work as root
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.1.14
All All
: P5 normal
: ---
Assigned To: Andreas Schneider
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-16 15:29 UTC by Andreas Schneider
Modified: 2017-03-27 10:57 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2014-12-16 15:29:35 UTC
smbstatus can only work as root as it need to access databases with sensitive information. We should print a warning to a user trying to execute it as root.
Comment 1 amitkuma 2017-03-27 10:57:04 UTC
What sort of warning you want to be printed for root user?
1. smbd is running from root user.
2. smbstatus tried to run from nonroot
[test1@xyz]$ smbstatus 
smbstatus only works as root!
[test1@xyz]$