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.
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]$