Debian Bug report logs - #40645
samba: build uses setresuid which doesn't work under 2.0.34 (does apparently under 2.2.x

version graph

Package: samba; Maintainer for samba is Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>; Source for samba is src:samba (PTS, buildd, popcon).

Reported by: Jens B.Jorgensen <jbj1@helios.jenshome.bdsinc.com>

Date: Fri, 2 Jul 1999 21:17:25 UTC

Severity: grave

Found in version 2.0.4b-3

Done: "Eloy A. Paris" <eparis@andrew.cmu.edu>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#40645; Package samba. (full text, mbox, link).


Acknowledgement sent to Jens B.Jorgensen <jbj1@helios.jenshome.bdsinc.com>:
New bug report received and forwarded. Copy sent to peloy@debian.org (Eloy A. Paris). (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jens B.Jorgensen <jbj1@helios.jenshome.bdsinc.com>
To: submit@bugs.debian.org
Subject: samba: build uses setresuid which doesn't work under 2.0.34 (does apparently under 2.2.x
Date: 2 Jul 1999 21:16:24 -0000
Package: samba
Version: 2.0.4b-3
Severity: grave

After installing this package and adding my user I get an error message in smb.log when I try to connect: 

[1999/07/02 10:48:22, 0] smbd/uid.c:become_gid(105)
  Couldn't set effective gid to 100 currently set to (real=0,eff=0)
[1999/07/02 10:48:22, 0] smbd/service.c:make_connection(425)
  Can't become connected user!

Searching the archives at the samba web site indicates that this is because the package was compiled to use the setresuid call (which apparently was introduced in the 2.1.x kernels). I compiled the package myself from the source package and this solved the problem so if this package was compiled on a 2.2.x system this is likely the problem. See: http://us1.samba.org/listproc/samba-ntdom/1639.html

-- System Information
Debian Release: potato
Kernel Version: Linux helios 2.0.34 #7 Tue Jun 8 00:10:37 CDT 1999 i486 unknown

Versions of the packages samba depends on:
ii  libc6           2.1.1-12       GNU C Library: Shared libraries and timezone
ii  samba-common    2.0.4b-3       Samba common files used by both the server a


Information forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#40645; Package samba. (full text, mbox, link).


Acknowledgement sent to "Eloy A . Paris" <Eloy.Paris@ven.ra.rockwell.com>:
Extra info received and forwarded to list. Copy sent to peloy@debian.org (Eloy A. Paris). (full text, mbox, link).


Message #10 received at 40645@bugs.debian.org (full text, mbox, reply):

From: "Eloy A . Paris" <Eloy.Paris@ven.ra.rockwell.com>
To: "Jens B.Jorgensen" <jbj1@helios.jenshome.bdsinc.com>, 40645@bugs.debian.org
Subject: Re: Bug#40645: samba: build uses setresuid which doesn't work under 2.0.34 (does apparently under 2.2.x
Date: Fri, 2 Jul 1999 20:21:52 -0400
Jens:

This has me puzzled: if I build the Samba packages in a Slink system
HAVE_SETRESUID is not set, but if I build in a Potato system it is
not. Obviously, the package I am uploading is the one built in the
Potato system. The strange thing is that both system are running
kernel 2.2.10 and I believe that in both cases the kernel headers used
for the build are from 2.2.x kernels (I will check that in a moment).

You are not the only one seeing this problem: another user running a
2.0.x kernel reported this today (although did not filed a bug
report).

There's something going on here but I don't know yet what it is. I'll
let you know what I find.

Thanks!

peloy.-

On Fri, Jul 02, 1999 at 09:16:24PM -0000, Jens B.Jorgensen wrote:
> Package: samba
> Version: 2.0.4b-3
> Severity: grave
> 
> After installing this package and adding my user I get an error message in smb.log when I try to connect: 
> 
> [1999/07/02 10:48:22, 0] smbd/uid.c:become_gid(105)
>   Couldn't set effective gid to 100 currently set to (real=0,eff=0)
> [1999/07/02 10:48:22, 0] smbd/service.c:make_connection(425)
>   Can't become connected user!
> 
> Searching the archives at the samba web site indicates that this is because the package was compiled to use the setresuid call (which apparently was introduced in the 2.1.x kernels). I compiled the package myself from the source package and this solved the problem so if this package was compiled on a 2.2.x system this is likely the problem. See: http://us1.samba.org/listproc/samba-ntdom/1639.html
> 
> -- System Information
> Debian Release: potato
> Kernel Version: Linux helios 2.0.34 #7 Tue Jun 8 00:10:37 CDT 1999 i486 unknown
> 
> Versions of the packages samba depends on:
> ii  libc6           2.1.1-12       GNU C Library: Shared libraries and timezone
> ii  samba-common    2.0.4b-3       Samba common files used by both the server a



Information forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#40645; Package samba. (full text, mbox, link).


Acknowledgement sent to "Eloy A. Paris" <peloy@ven.ra.rockwell.com>:
Extra info received and forwarded to list. Copy sent to peloy@debian.org (Eloy A. Paris). (full text, mbox, link).


Message #15 received at 40645@bugs.debian.org (full text, mbox, reply):

From: "Eloy A. Paris" <peloy@ven.ra.rockwell.com>
To: Josip Rodin <joy@cibalia.gkvk.hr>
Cc: 40645@bugs.debian.org, 41754-done@bugs.debian.org, 41366-done@bugs.debian.org
Subject: Re: Debian Release Critical Bugs Query
Date: Fri, 30 Jul 1999 08:03:14 -0400
Hi!

I am very sorry for the delay in responding. I moved from Caracas,
Venezuela to Pittsburgh, USA last Wednesday and am working on the basic
stuff (apartment, bank accounts, Internet connectivity, furniture,
etc.). My last days have been very long and hectic and haven't had time
at all to work on Debian. This should change soon...

Josip Rodin wrote:

> For that reason, I would like your comments about these bugs:
> 
> Package: samba (main).
>   40645 samba: build uses setresuid which doesn't work under 2.0.34 (does apparently under 2.2.x
[HELP]

The problem seems to happen only if Samba was built on a system running
a 2.2.x kernel and glibc2.1 _and_ the binaries are run on a system that
uses a 2.0.x kernel.

If you run these binaries in the same environment they were built on
glibc2.1 and a 2.2.x kernel) everything is fine!

I would appreciate help from someone on this one.

>   41754 samba: samba 2.0.5 released - security upgrade from 2.0.4
[FIX]
This one is fixed already. samba-2.0.5a-2 is currently in Potato.

> Package: samba-common (main).
>   41366 samba-common: upgrade dependiency
[FIX]
This one should be fixed as well with samba-common-2.0.5a-2.

I am closing in this same message the important and grave bugs that are
fixed already (I haven't had time to do so).

See ya!

peloy.-



Information forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#40645; Package samba. (full text, mbox, link).


Acknowledgement sent to Craig Small <csmall@scooter.eye-net.com.au>:
Extra info received and forwarded to list. Copy sent to peloy@debian.org (Eloy A. Paris). (full text, mbox, link).


Message #20 received at 40645@bugs.debian.org (full text, mbox, reply):

From: Craig Small <csmall@scooter.eye-net.com.au>
To: 40645@bugs.debian.org
Subject: Me too!
Date: Thu, 9 Sep 1999 11:39:59 +1000 (EST)
G'day Eloy,
  Just letting you know I've got the same problem here, kernel 2.0.34. I
will update my kernel.

  - Craig

-- 
Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7  47 41 B1 A2 1F 46 EC 90
Eye-Net Consulting http://www.eye-net.com.au/     <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org>              Debian developer <csmall@debian.org>


Information forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#40645; Package samba. (full text, mbox, link).


Acknowledgement sent to Jens.Ritter@weh.rwth-aachen.de:
Extra info received and forwarded to list. Copy sent to peloy@debian.org (Eloy A. Paris). (full text, mbox, link).


Message #25 received at 40645@bugs.debian.org (full text, mbox, reply):

From: Jens Ritter <jens@hilbert.weh.rwth-aachen.de>
To: 40645@bugs.debian.org
Subject: Suggestion for workaround.
Date: Fri, 1 Oct 1999 00:42:45 +0200 (CEST)
Hallo Peloy,

this same bug has troubled me earlier this week.
Because there was no indication that it is related to the kernel version
I needed 2 hours to solve the puzzle.

I suggest you add a check in the {pre,post}inst script like

if [ "`uname -r |grep ^2.2`" == "" ]; then 
  echo please upgrade your kernel to 2.2.X
  echo or revert to the stable version.
  echo Press [enter]
  read
fi

TIA,

Jens

P.S.: Please vote against Spam! At
             http://www.politik-digital.de/spam/
(Sorry Europeans only)
---
Jens.Ritter@weh.rwth-aachen.de   grimaldi@debian.org
Key ID: 2048/E451C639 Jens Ritter
Key fingerprint: 5F 3D 43 1E 24 1E CC 48  1E 05 93 3A A7 10 73 37 



Reply sent to "Eloy A. Paris" <eparis@andrew.cmu.edu>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Jens B.Jorgensen <jbj1@helios.jenshome.bdsinc.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #30 received at 40645-done@bugs.debian.org (full text, mbox, reply):

From: "Eloy A. Paris" <eparis@andrew.cmu.edu>
To: <40645-done@bugs.debian.org>
Cc: <jbj1@helios.jenshome.bdsinc.com>
Subject: Re: #40645: samba: build uses setresuid which doesn't work under 2.0.34 (does apparently under 2.2.x)
Date: Mon, 1 Nov 1999 19:16:59 -0500
Finally, this is fixed in samba-2.0.5a-4. The patch was provided by Debian's
leader Wichert Akerman.

Cheers,

peloy.-

--

Eloy A. Paris
Carnegie Mellon University
Graduate School of Industrial Administration
Master of Science in Industrial Administration (MBA)
Class of 2001



Message #31 received at 40645-done@bugs.debian.org (full text, mbox, reply):

From: "Eloy A. Paris" <eparis@andrew.cmu.edu>
To: <40703-done@bugs.debian.org>, <40645-done@bugs.debian.org>
Cc: <thomas@x-berg.in-berlin.de>, <Alain.Nissen@advalvas.be>
Subject: Re: #40645: cannot connect to my smb shares anymore and #40703: samba: cannot connect to my smb shares anymore
Date: Mon, 1 Nov 1999 19:31:39 -0500
Thanks to a patch provided by our Debian's fearless leader (Wichert) this is
now solved and the same binaries can be used with both 2.0.x and 2.2.x
kernels.

Sorry it took so long.

peloy.-

---------------------------------------------------

Package: samba
Version: 2.0.4b-3
Severity: normal

after an apt-upgrade, i cannot connect to my samba server anymore.

i have as global settings a "guest user" and "security level share".
the guest user may not log in:
fshare:x:203:150:smb:/dev/null:/bin/false

the failure looks like this:
$ smbclient -L x-berg -N
Added interface ip=193.175.21.190 bcast=193.175.21.255 nmask=255.255.255.0
Domain=[X-BERG] OS=[Unix] Server=[Samba 2.0.4b]
tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password pair in
a Tree Connect or Session Setup are invalid.)
$


--

Eloy A. Paris
Carnegie Mellon University
Graduate School of Industrial Administration
Master of Science in Industrial Administration (MBA)
Class of 2001



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri May 24 07:44:02 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.