Bug 7266 - i can't start smbd when if i set "guest account" = "non-root user" in smb.conf
Summary: i can't start smbd when if i set "guest account" = "non-root user" in smb.conf
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.4.2
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
Depends on:
Reported: 2010-03-19 04:32 UTC by james
Modified: 2020-11-10 16:39 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description james 2010-03-19 04:32:50 UTC
samba version:3.4.2
platform OS: linux-2.6.21

i share a directory "netdisk" to windows through samba, i want to share this directory to guest, we need the guest only have read permission to this directory and have rwx permission to its subdirectories. so i set "guest account" = a non-root user i created in linux, but i can't start smbd "/usr/bin/smbd -D" , but if i use "guest account = root" smbd work well, here is the error log:
[1970/01/01 01:09:27,  0] lib/util.c:1480(smb_panic)
  PANIC (pid 797): failed to set gid

[1970/01/01 01:09:27,  0] lib/util.c:1584(log_stack_trace)
  BACKTRACE: 1 stack frames:
   #0 /usr/bin/smbd(log_stack_trace+0x38) [0x6d89d8]
[1970/01/01 01:09:27,  0] lib/fault.c:307(dump_core)
  Can not dump core: corepath not set up


and my smb.conf is:


workgroup = eapac
use mmap = no
log level = 1
max log size = 2000
log file = /tmp/samba.log
guest account = zzz  (a user ,gid = 500, uid =500)
dos charset = UTF-8
unix charset = UTF-8
display charset = UTF-8

netbios name = t083gTest
server string = test
oplocks = false
dns proxy = no
#security = user
security = share
encrypt passwords = yes
#smb passwd file = /var/run/samba/smbpasswd
disable spoolss = yes
hosts allow = All
interfaces = bridge0

comment = usb disk
path = /netdisk
read only = no
writeable = yes
guest ok = yes

Comment 1 Björn Jacke 2020-11-10 16:39:52 UTC
I don't know what is wrong in your setup but this does not look like a generic bug, 99.9% of all samba setups have a guest account set to a non-root account without a problem.