[PATCH] Mark smbstatus as root only util
Volker.Lendecke at SerNet.DE
Tue Dec 16 10:57:02 MST 2014
On Tue, Dec 16, 2014 at 09:06:47AM -0800, Jeremy Allison wrote:
> 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().
Sorry, I did not see that. It's in now.
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical