smbstatus: Tell the user that smbstatus can only be run as root.
authorAndreas Schneider <asn@samba.org>
Tue, 16 Dec 2014 14:52:43 +0000 (15:52 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 16 Dec 2014 17:54:41 +0000 (18:54 +0100)
commit10fdf4f5eb1f1c0a0f12050fe8241c3e92f715d9
tree5e7c0ca54c1bb0c869e15ce62df9de8fa9debb46
parentaf570c294b03035f022bcb53b81b2ef9025de516
smbstatus: Tell the user that smbstatus can only be run as root.

In the meantime smbstatus tries to collection information from tdb's
which are only accessible by root as they contain sensitive information
like session keys and other secrets. This means smbstatus can no longer
be executed as a user.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11012

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Dec 16 18:54:41 CET 2014 on sn-devel-104
source3/utils/status.c