Hi ! I got a problem with connection of users at a connection to smbd. It seems that the authentication is ok and the user accepted and existing. And for test I just connect to the homes. I get the following log error. lib/sec_.c:assert_gid(70) Failed to set gid priviliges to (-1,100) now set to (0,0) uid (0,0) lib/util.c:smb_panic(2456) PANIC: failed to set gid Does anybody know what that could be ?! Thank you for helping me! I add log and config files: ##################################################### [2000/01/22 12:02:03, 3] smbd/process.c:process_smb(615) Transaction 1 of length 168 [2000/01/22 12:02:03, 3] smbd/process.c:switch_message(448) switch message SMBnegprot (pid 4497) [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [PC NETWORK PROGRAM 1.0] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [MICROSOFT NETWORKS 1.03] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [MICROSOFT NETWORKS 3.0] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [LANMAN1.0] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [LM1.2X002] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(341) Requested protocol [Samba] [2000/01/22 12:02:03, 3] smbd/negprot.c:reply_negprot(421) Selected protocol NT LANMAN 1.0 [2000/01/22 12:02:05, 3] smbd/process.c:process_smb(615) Transaction 2 of length 138 [2000/01/22 12:02:05, 3] smbd/process.c:switch_message(448) switch message SMBsesssetupX (pid 4497) [2000/01/22 12:02:05, 3] smbd/reply.c:reply_sesssetup_and_X(789) Domain=[DRUIDEN] NativeOS=[Unix] NativeLanMan=[Samba] [2000/01/22 12:02:05, 3] smbd/reply.c:reply_sesssetup_and_X(793) sesssetupX:name=[HAYMO] [2000/01/22 12:02:05, 4] smbd/password.c:smb_password_ok(405) Checking SMB password for user haymo [2000/01/22 12:02:05, 4] smbd/password.c:smb_password_ok(432) smb_password_ok: Checking NT MD4 password [2000/01/22 12:02:05, 4] smbd/password.c:smb_password_ok(436) NT MD4 password check succeeded [2000/01/22 12:02:05, 3] param/loadparm.c:lp_add_home(1525) adding home directory haymo at /home/haymo [2000/01/22 12:02:05, 3] smbd/password.c:setup_groups(197) haymo is in 1 groups: 100 [2000/01/22 12:02:05, 3] smbd/password.c:register_vuid(275) uid 1000 registered to name haymo [2000/01/22 12:02:05, 3] smbd/password.c:register_vuid(277) Clearing default real name [2000/01/22 12:02:05, 3] smbd/process.c:process_smb(615) Transaction 3 of length 69 [2000/01/22 12:02:05, 3] smbd/process.c:switch_message(448) switch message SMBtconX (pid 4497) [2000/01/22 12:02:05, 4] smbd/reply.c:reply_tcon_and_X(312) Got device type ????? [2000/01/22 12:02:05, 3] smbd/password.c:authorise_login(727) ACCEPTED: validated uid ok as non-guest [2000/01/22 12:02:05, 3] smbd/service.c:make_connection(426) Connect path is /tmp [2000/01/22 12:02:05, 0] lib/util_sec.c:assert_gid(70) Failed to set gid privileges to (-1,100) now set to (0,0) uid=(0,0) [2000/01/22 12:02:05, 0] lib/util.c:smb_panic(2456) PANIC: failed to set gid ##################################################### ; ; /etc/smb.conf ; ; Sample configuration file for the Samba suite for Debian GNU/Linux ; ; Please see the manual page for smb.conf for detailed description of ; every parameter. ; [global] guest account = nobody invalid users = root security = user workgroup = druiden server string = %h server (Samba %v) encrypt passwords = yes wins support = yes os level = 66 domain master = yes local master = yes preferred master = yes name resolve order = wins bcast host lmhosts dns proxy = no preserve case = yes short preserve case = yes unix password sync = false passwd program = /usr/bin/passwd %u passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n *Password\schanged.* . max log size = 1000 interfaces = 192.168.1.1/255.255.255.0 log level = 4 lock directory = /var/lock/samba log file = /var/log/smb-mp3.%m domain logons = yes logon script = LOGON.BAT ; logon path = \\%L\Profiles\%U [homes] comment = Dein privates Home-Directory browseable = no read only = no writeable = yes create mask = 0700 directory mask = 0700 ;[netlogon] ; comment = Netzwerk Logon Service ; path = /usr/local/share/samba/netlogon ; guest ok = yes ; writeable = no ; share modes = no ;[Profiles] ; comment = WinX Profile ; path = /usr/local/share/samba/profiles/%U ; browseable = no ; guest ok = yes ;[ftp] ; comment = Ftp Server ; path = /home/ftp ; public = yes ; read list = @users ; write list = haymo ; browseable = yes ; create mode = 0664 ;[tmp] ; comment = Hier Dateien austauschen! ;-) ; path = /var/tmp/samba ; public = yes ; write list = haymo, lisi, heidi, tanja, christian ; writeable = yes ; browseable = yes ; create mode = 0644
On Sun, 23 Jan 2000 05:08:58 +1100, hai scritto:>lib/sec_.c:assert_gid(70) >Failed to set gid priviliges to (-1,100) now set to (0,0) uid (0,0) >lib/util.c:smb_panic(2456) >PANIC: failed to set gidThe samba you are using uses a call that is not implemented on your system, The cause of this may be: 1) you did ./configure as normal user and not root 2) you're using a precompiled binary (compiled on another/different system) 3) samba ./configure failed to properly detect you system characteristic Reconfigure samba and look in source/include/config.h for ... /* #undef USE_SETEUID */ #define USE_SETRESUID 1 /* #undef USE_SETREUID */ /* #undef USE_SETUIDX */ ... if it's not ok for you os, force it to be. Example: samba-2.0.x on linux 2.2.x/glibc uses SETRESUID. If you use a samba 2.0.x compiled on linux-2.2.x on a linux-2.0.x/libc5 you get that error because linux-2.0.x has SETEUID. -- giulioo@pobox.com
I run Debian Linux, and I had Samba running. I just upgraded to version 2.2 of Debian, which included an upgrade to version 2.0.7-3. Now I'm getting the following messages anytime a connection is attempted, and then I get a message that "This device does not exist on the network" [2000/08/28 00:08:56, 1] smbd/server.c:main(641) smbd version 2.0.7 started. Copyright Andrew Tridgell 1992-1998 [2000/08/28 00:08:56, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 246 are available. [2000/08/28 00:08:56, 0] lib/util_sec.c:assert_gid(72) Failed to set gid privileges to (-1,1002) now set to (0,0) uid=(0,0) [2000/08/28 00:08:56, 0] lib/util.c:smb_panic(2381) PANIC: failed to set gid Justin Slootsky slootsky@bigfoot.com
Hi Justin,> I run Debian Linux, and I had Samba running. I just upgraded to > version 2.2 of Debian, which included an upgrade to version 2.0.7-3. > Now I'm getting the following messages anytime a connection is attempted, > and then I get a message that "This device does not exist on the network" > > [2000/08/28 00:08:56, 1] smbd/server.c:main(641) > smbd version 2.0.7 started. > Copyright Andrew Tridgell 1992-1998 > [2000/08/28 00:08:56, 1] smbd/files.c:file_init(216) > file_init: Information only: requested 10000 open files, 246 are > available. > [2000/08/28 00:08:56, 0] lib/util_sec.c:assert_gid(72) > Failed to set gid privileges to (-1,1002) now set to (0,0) uid=(0,0) > [2000/08/28 00:08:56, 0] lib/util.c:smb_panic(2381) > PANIC: failed to set gidI am the maintainer of the Samba package for Debian and know very well what your problem is: you are running a 2.0.x linux kernel. If you upgrade to a 2.2.x Linux kernel the problem will go away. This problem has been reported several times, and I still haven't been able to figure out a nice solution. What happens is that I build the Debian packages on a system running 2.2.x (or even 2.4.x) kernels, and the configure script then selects some system calls (namely sedresid() and setresgid() ) which are available in the 2.2.x kernels but not in the 2.0.x kernels. So, when you run these binaries in a system that is running a 2.0.x kernel, the program (smbd) tries to make these system calls but since they are not available they fail and smbd spits those error messages you are seeing. An alternative solution if you want to stick to the 2.0.x kernel is to grab the sources and recompile the package. This way you will be able to use the Debian Samba packages under your 2.0.x kernel. Hope this helps. Cheers, Eloy.-
Hi, i've got a "minor" problem with my samba, which will say, that it doesn't admit access to the server and since it also is running as WINS server, this doesn't work either. I've tried to recover, what the problem could be, but not really could find any documentation. My system is running Debian 2.2 (Potato) and Samba 2.0.7 I've got the following error in the logfile: [2000/12/14 14:35:08, 0] lib/util_sec.c:assert_gid(72) Failed to set gid privileges to (-1,102) now set to (0,0) uid=(0,0) [2000/12/14 14:35:08, 0] lib/util.c:smb_panic(2381) PANIC: failed to set gid Anyone out there, which has met this error-messages before and solved the problem ?? Regards, Martin List-Petersen
Hi Martin, The problem you are running into is that on your system, apparently the call to setgid() is failing; there is a test in assert_gid to check to see if the current egid is the same as what you were trying to set it to, and if this fails, it cores smbd. You can get similar problems if you have negative uid/gid's that are being used in your nis or /etc/passwd and /etc/group file, but based on what you show in your debug snippet, this is not your case. More likely when you compiled Samba 2.0.7, something went wrong and it thinks it has the ability to set the egid with a call that is not working. If you turn on level=10 debugging and try again, you might get more information on exactly what is occurring before this. I'm not familiar with Debian OS, but we had a similar problem with MPE/iX, because the posix implementation didn't really implement setgid and setegid appropriately. Anyone out there with his version of Debian up and running? Did you compile Samba 2.0.7 yourself, or pull a binary package specifically for Debian 2.2? Hope this helps, Don -----Original Message----- From: Martin List-Petersen [mailto:mlp@portaltjenesten.dk] Sent: Thursday, December 14, 2000 8:49 AM To: samba@samba.org Subject: Failed to set gid privileges Hi, i've got a "minor" problem with my samba, which will say, that it doesn't admit access to the server and since it also is running as WINS server, this doesn't work either. I've tried to recover, what the problem could be, but not really could find any documentation. My system is running Debian 2.2 (Potato) and Samba 2.0.7 I've got the following error in the logfile: [2000/12/14 14:35:08, 0] lib/util_sec.c:assert_gid(72) Failed to set gid privileges to (-1,102) now set to (0,0) uid=(0,0) [2000/12/14 14:35:08, 0] lib/util.c:smb_panic(2381) PANIC: failed to set gid Anyone out there, which has met this error-messages before and solved the problem ?? Regards, Martin List-Petersen
> If you turn on level=10 debugging and try again, you might get > more information on exactly what is occurring before this.This gave only a lot more console output, but nothing, that was pointing to any solution. Probably you are right about a broken binary.> Anyone out there with his version of Debian up and running? > Did you compile Samba 2.0.7 yourself, or pull a binary package > specifically > for Debian 2.2? >These problems actually occurred after a upgrade of the binary .deb packages of the Debian system, so I will go on and recompile samba to se, what happens .... Thanks for your help so far, Martin List-Petersen