Bug 11012 - smbstatus can only work as root
Summary: smbstatus can only work as root
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.1.14
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-12-16 15:29 UTC by Andreas Schneider
Modified: 2017-03-27 10:57 UTC (History)
2 users (show)

See Also:


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 Amit Kumar 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!