Bug 585 - super user's UID is hardcoded to 0
super user's UID is hardcoded to 0
Status: RESOLVED WONTFIX
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.0
Other other
: P3 normal
: none
Assigned To: Tim Potter
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-10-08 07:40 UTC by Joachim Schmitz
Modified: 2004-03-17 05:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Schmitz 2003-10-08 07:40:39 UTC
Hi there

In samba (as well as in many other software) it is always assumed that the 
super user's UID is 0 (and that his GID is 0 too). While this might be true for 
almost any platform on the entire planet, it is unfortunatly not true for the 
platform that I'm trying to samba too, nsr-tandem-nsk, HP NonStop Server.
Here the super user is 65535 and the super group is 255.
Would you consider it worthwhile to make this configurable (of course with the 
default being 0)? I'd volunteer to create the patch, but would a) need some 
guidelines on how you folks would like it implemented and b) would like some 
degree of security that you'd accept such a patch.

Bye, Jojo
Comment 1 Tim Potter 2003-10-15 00:09:53 UTC
The only problem I can see with such a patch is that it would be virtually
impossible to stop people putting new code in which checks for uid == 0.  It's
kind of hardcoded into UNIX programmer's DNA I think.  (-:
Comment 2 Tim Potter 2003-10-15 00:10:25 UTC
That should be programmers' not programmer's.  Bonus marks if you spotted the
mistake.
Comment 3 Gerald (Jerry) Carter 2004-03-17 05:43:57 UTC
I agree with TIm.  We're not going to 
do anything on this one unbless there is 
more pressure from the community.  Sorry.