I'm not sure if this is a bug with Samba/the Samba RPM for RedHat 5.2/RedHat 5.2/ or just a net admin permissions issue, but... I'm trying to setup a RedHat 5.2 Kernel 2.0.36 Intel box with the Samba 2.0.2 RPMs RedHat distributes on the "Upgrading to the 2.2.x Linux Kernel on RedHat 5.2 Linux systems" page. I have setup this machine to be a domain member, which seemed to work fine, however I can't authenticate to it via the domain. When a client tries to attach I get the following in the log file for that client /var/log/samba/log.uwh23bd799 [1999/02/24 14:58:59, 0] smbd/uid.c:become_gid(105) Couldn't set effective gid to 100 currently set to (real=0,eff=0) [1999/02/24 14:58:59, 0] smbd/service.c:make_connection(425) Can't become connected user! [1999/02/24 14:58:59, 0] smbd/uid.c:become_gid(105) Couldn't set effective gid to 100 currently set to (real=0,eff=0) [1999/02/24 14:58:59, 0] smbd/service.c:make_connection(425) Can't become connected user! The client is a Windows 95 OSR2.1 workstation.
smbmount and smbumount are not shipped setuid. I believe the previous versions were? Or maybe they did not have to be setuid root to work for non root users.
AFAICR, smb(u)mount were never shipped setuid. If the sysadmin of a system wants to allow a user to mount shares, he can make them setuid. In any case, I doubt that that's what the message is from.
what are uid/gid 100 on your system?
OK, I downloaded the source to Samba and recompiled it on my machine. I copied the newly compiled smbd & nmbd over the ones installed by the RedHat Samba 2.0.2 and kept all the other files installed by the RedHat Samba 2.0.2 and everything works fine. The compiled smbd & nmbd that RedHat is distributing does not work correctly on my machine.
can you check and see what are the permissions on smbd/nmbd you just compiled?
ls -l /usr/sbin/smbd -rwxr-xr-x 1 root root 740705 Feb 24 19:26 /usr/sbin/smbd* ls -l /usr/sbin/nmbd -rwxr-xr-x 1 root root 365806 Feb 24 19:26 /usr/sbin/nmbd*
what options did you pass to configure when you compiled it?
None. I just ran configure, changed the Makefile for the directories that RedHat uses (/etc/smbpasswd instead of /usr/local/samba...), ran make and then copied smbd and nmbd to the new locations.
Hm. I still can't reproduce this here. Could you try rebuilding the source RPM from Raw Hide/Starbuck (samba-2.0.3-*) and see if that works for you?
Possibly, it will take me a while to get around to it. I haven't tried samba-2.0.3 yet, maybe that will fix things on its own. Right now things are working fine so I don't have much of an incentive to work on this unless other people are having the same problem.
OK. I'm going to close this bug until we can see if the changes persist, or someone else can duplicate it.
OK
This came about due to an autoconf test that succeeded because our build machine was *running* a 2.2 kernel, even though we compiled against a 2.0.... Bleah. This will be fixed with the samba-2.0.5 RPMs, which will be available RSN.