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

[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:


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 <>, +47 6384 8862
Telenor Research and Development

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