Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st January 2007, 03:23 AM
slamp Offline
Registered User
 
Join Date: Jan 2007
Posts: 20
Samba segfaults when valid users is set to a group

I cannot for the life of me figure out why this is happening. Please help!

If I set valid users = johndoe it works, if I set to valid users = @smbgrp it does not work.

SYSTEM INFO:

[root@fedora smbd]# cat /etc/issue
Fedora Core release 6 (Zod)

[root@fedora smbd]# rpm -qa | grep samba
samba-3.0.23c-2
system-config-samba-1.2.35-1.1
samba-common-3.0.23c-2
samba-client-3.0.23c-2

[root@fedora smbd]# uname -a
Linux fedora.domain.com 2.6.18-1.2868.fc6 #1 SMP Fri Dec 15 17:31:29 EST 2006 i686 athlon i386 GNU/Linux


NOTE: Same config works in Debian Sarge but with an older samba since Debian always comes out with outdated software. (samba 3.0.14a-3sarge)

SAMBA CONFIG:

[root@fedora samba]# cat smb.conf
[global]
workgroup = BAHAY
server string = Fedora Samba
security = user
encrypt passwords = yes
password level = 20
hosts allow = 192.168.1.
log file = /var/log/samba/log.%m
max log size = 50
interfaces = 192.168.1.2/24
local master = no
preferred master = no
os level = 32
dns proxy = no
# load printers = no
# printing = bsd
# printcap name = /dev/null
# disable spoolss = yes

[homes]
comment = Home Directories
available = no
browseable = no
writable = no
read only = yes

[files]
comment = BAHAY repository
path = /storage
valid users = @smbgrp
public = no
writable = yes
#create mask = 770
#directory mask = 771
#force group = smbgrp


[root@fedora samba]# grep smbgrp /etc/group
smbgrp:x:501:johndoe


[root@fedora samba]# grep johndoe /etc/passwd
johndoe:x:500:500::/home/johndoe:/bin/bash


LOG:

[2006/12/31 17:18:31, 0] lib/fault.c:fault_report(42)
INTERNAL ERROR: Signal 11 in pid 12845 (3.0.23c-2)
Please read the Trouble-Shooting section of the Samba3-HOWTO
[2006/12/31 17:18:31, 0] lib/fault.c:fault_report(44)

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2006/12/31 17:18:31, 0] lib/fault.c:fault_report(45)
================================================== =============
[2006/12/31 17:18:31, 0] lib/util.c:smb_panic(1614)
PANIC (pid 12845): internal error
[2006/12/31 17:18:31, 0] lib/util.c:log_stack_trace(1721)
BACKTRACE: 21 stack frames:
#0 smbd(log_stack_trace+0x2d) [0xcdf25d]
#1 smbd(smb_panic+0x5d) [0xcdf38d]
#2 smbd [0xccad7a]
#3 [0x68b420]
#4 /lib/libc.so.6(strlen+0x33) [0x3232d3]
#5 /lib/libc.so.6(__strdup+0x25) [0x323015]
#6 /lib/libnsl.so.1(nis_list+0x62f) [0x279c5f]
#7 /lib/libnss_nisplus.so.2(_nss_nisplus_setnetgrent+0x94) [0x5827c4]
#8 /lib/libc.so.6(innetgr+0xb6) [0x3a12e6]
#9 smbd(user_in_netgroup+0x65) [0xb15a65]
#10 smbd(token_contains_name_in_list+0x23d) [0xb1846d]
#11 smbd(is_share_read_only_for_token+0x5a) [0xb1872a]
#12 smbd(change_to_user+0x442) [0xb56eb2]
#13 smbd [0xb764a8]
#14 smbd(make_connection+0x194) [0xb77914]
#15 smbd(reply_tcon_and_X+0x217) [0xb3b1d7]
#16 smbd [0xb72a70]
#17 smbd(smbd_process+0x7ab) [0xb73b9b]
#18 smbd(main+0xbd0) [0xd8d8e0]
#19 /lib/libc.so.6(__libc_start_main+0xdc) [0x2ccf2c]
#20 smbd [0xafdfb1]
[2006/12/31 17:18:31, 0] lib/fault.c:dump_core(173)
dumping core in /var/log/samba/cores/smbd


COREDUMP:

[root@fedora smbd]# gdb smbd core.12843
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
(no debugging symbols found)
Loaded symbols for /usr/sbin/smbd
Reading symbols from /usr/lib/libldap-2.3.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libldap-2.3.so.0
Reading symbols from /usr/lib/liblber-2.3.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/liblber-2.3.so.0
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libcups.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcups.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libpam.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /lib/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libattr.so.1
Reading symbols from /lib/libacl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libacl.so.1
Reading symbols from /lib/libnsl.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libpopt.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpopt.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /lib/libssl.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libssl.so.6
Reading symbols from /lib/libcrypto.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libgnutls.so.13...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /lib/libaudit.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libaudit.so.0
Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /usr/lib/gconv/UTF-16.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/UTF-16.so
Reading symbols from /usr/lib/gconv/IBM850.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/IBM850.so
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libgcc_s.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Failed to read a valid object file image from memory.
Core was generated by `smbd -D'.
Program terminated with signal 6, Aborted.
#0 0x0068b402 in ?? ()

Last edited by slamp; 1st January 2007 at 03:26 AM.
Reply With Quote
  #2  
Old 8th January 2007, 04:26 PM
igge Offline
Registered User
 
Join Date: Jan 2007
Posts: 3
Try to change GID of johndoe to 501 in /etc/passwd

[root@fedora samba]# grep johndoe /etc/passwd
johndoe:x:500:500::/home/johndoe:/bin/bash

like this: johndoe:x:500:501::/home/johndoe:/bin/bash
in my case that works (FC5/Samba)
Reply With Quote
Reply

Tags
group, samba, segfaults, set, users, valid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fc10 smb.conf file valid users = @group not working epicurean Servers & Networking 2 3rd June 2009 08:32 PM
[SOLVED] Fedora 7 samba no longer understands NIS group name in valid users kyuso Servers & Networking 1 2nd July 2007 06:15 AM
samba 3.0.23c and valid users Mester Servers & Networking 0 29th September 2006 11:55 AM
Samba - If I use @valid users, only root can log in essdeeay Using Fedora 2 8th April 2006 04:19 PM
Samba Valid Users Not Valid budds Servers & Networking 1 10th January 2005 06:22 AM


Current GMT-time: 05:57 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat