lkml.org 
[lkml]   [1996]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: "trapdoor uid"?
Date

[Ulf Jaenicke-Roessler]

| Warning: You appear to have a trapdoor gid system
|
| From 'man smbd' I learned, that the program was unable to change its
| uid to root and back. Is this a (local) misconfiguration (and what
| should I do to correct it)

It's probably because you have set the uid of `nobody' to -1. This is
wrong, because, for security reasons, samba uses setreuid() to change uid
from root to nobody. However, passing -1 to setreuid() won't work:

[setreuid.2]:

Supplying a value of -1 for either the real or effective user ID
forces the system to leave that ID unchanged.

The fix is to change nobody to e.g. -2.
--
Karl Anders Øygard <karl.oygard@fou.telenor.no>, +47 6384 8862
Telenor Research and Development

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.090 / U:31.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site