Hi folks -
I've been beating my head against the wall for a couple days on this issue,
and I'm hoping someone here can help me.
I've been running Samba successfully on Debian for some time now, and this
problem started recently. I'm unable to determine what has changed on my
system.
Whenever I attempt to access a share the requires setuid (i.e. guest
access), Samba panics and fails. I don't have a problem accessing shares
where setuid is not required. My configuration is relatively simple and
straightforward (see below).
I've compiled Samba from Debian source to just to make sure there isn't
a
problem between the binaries, with no change in behavior.
Can anyone help point me in the right direction?
-doug
[2007/01/23 09:07:43, 0] lib/util.c:log_stack_trace(1706)
BACKTRACE: 14 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822be03]
#1 /usr/sbin/smbd(smb_panic+0x46) [0x822bef6]
#2 /usr/sbin/smbd [0x82312a9]
#3 /usr/sbin/smbd [0x80db18e]
#4 /usr/sbin/smbd(set_sec_ctx+0xfa) [0x80db51a]
#5 /usr/sbin/smbd(change_to_user+0x35e) [0x80d175e]
#6 /usr/sbin/smbd [0x80ed997]
#7 /usr/sbin/smbd(make_connection+0x13f) [0x80eecff]
#8 /usr/sbin/smbd(reply_tcon_and_X+0x1b2) [0x80b8d12]
#9 /usr/sbin/smbd [0x80ea494]
#10 /usr/sbin/smbd(smbd_process+0x6f8) [0x80eb658]
#11 /usr/sbin/smbd(main+0x10df) [0x82c330f]
#12 /lib/tls/libc.so.6(__libc_start_main+0xc8) [0xb7beeea8]
#13 /usr/sbin/smbd [0x8082b31]
[2007/01/23 09:07:43, 0] lib/fault.c:dump_core(173)
dumping core in /var/log/samba/cores/smbd
[2007/01/23 09:07:43, 0] lib/util_sec.c:assert_uid(101)
Failed to set uid privileges to (-1,65534) now set to (0,0)
[2007/01/23 09:07:43, 0] lib/util.c:smb_panic(1599)
PANIC (pid 20600): failed to set uid
[global]
workgroup = DOUG.DIMICK.NET
server string = %h
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
printcap name = cups
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
invalid users = root
printer admin = @ntadmin
printing = cups
print command lpq command = %p
lprm command
[homes]
comment = Home Directories
read only = No
create mask = 0600
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
write list = root, @ntadmin
[cdrom]
comment = Server's CD-ROM
path = /cdrom
guest ok = Yes
locking = No
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
[music]
comment = Shared music store
path = /home/share/music
read only = No
guest only = Yes
[video]
comment = Shared video store
path = /home/share/video
force user = nobody
read only = No
guest only = Yes
[HPLJ4]
comment = HP LaserJet 4
path = /tmp
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
printer name = HPLJ4
share modes = No
Volker Lendecke
2007-Jan-23 19:20 UTC
[Samba] Segfault/panic with Samba 3.0.23d and setuid
On Tue, Jan 23, 2007 at 10:55:14AM -0800, Doug Dimick wrote:> I've been beating my head against the wall for a couple days on this issue, > and I'm hoping someone here can help me.Any chance that you are running something like selinux or apparmor? Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070123/8bb37928/attachment.bin