Set Uid Failures

Graham Allan allan at physics.umn.edu
Wed Feb 23 23:34:22 GMT 2000


We have a similar problem with 2.0.6 on Compaq Tru64 (previously
Digital) Unix 4.0F. This share is for NT roaming profiles and works
fine with 2.0.5a.

[2000/02/23 00:59:51, 1] smbd/service.c:(535)
  peevish (128.101.220.114) connect to service profiles as user allan (uid=5000,
 gid=5000) (pid 920)
[2000/02/23 00:59:51, 0] lib/util_sec.c:(52)
  Failed to set uid privileges to (0,5000) now set to (5000,5000)
[2000/02/23 00:59:51, 0] lib/util.c:(2456)
  PANIC: failed to set uid

util_sec.c does appear much changed from 2.0.5a but I don't know the
cause of the problem. I have too many variables which have changed
since building 2.0.5a to be sure of anything (new OS version, patches,
C compiler...). I can only guess it is the call to unbecome_user() in
smbd/service.c which is failing. It is almost behaving as if we have a
trapdoor uid system (as I understand it), despite never being a problem
in previous Samba versions.

Graham

> Has there been any reported errors on Set Uid commands for HP-UX 11.00.  I
> am receiving the following messages whenever a share is added.
> 
> [2000/02/21 15:17:05, 3]
> /tmp/samba-2.0.6/source/smbd/password.c:authorise_login(784)
>   ACCEPTED: guest account and guest ok
> [2000/02/21 15:17:05, 3]
> /tmp/samba-2.0.6/source/smbd/service.c:make_connection(426)
>   Connect path is /tmp
> [2000/02/21 15:17:05, 0]
> /tmp/samba-2.0.6/source/lib/util_sec.c:assert_uid(54)
>   Failed to set uid privileges to (-1,-2) now set to (0,0)
> [2000/02/21 15:17:05, 0] /tmp/samba-2.0.6/source/lib/util.c:smb_panic(2456)
>   PANIC: failed to set uid
> 
> It seems to happen on all shares.  I have 2.0.6 running on a 10.20 machine
> without these issues.


More information about the samba mailing list