[PATCH] Mark smbstatus as root only util
jra at samba.org
Tue Dec 16 10:06:47 MST 2014
On Tue, Dec 16, 2014 at 04:02:06PM +0100, Andreas Schneider wrote:
> On Tuesday 16 December 2014 15:56:56 Andreas Schneider wrote:
> > Hi,
> > 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.
> > The attached patch displays a warning and exits.
> Here with the correct patch :)
NAK. It needs to be geteuid(), not getuid().
More information about the samba-technical