I just compiled Samba 3.0.21a for Linux/mipsel/uclibc. When I want to start smbd, it fails: [2006/01/19 12:29:09, 0] lib/util_sec.c:assert_gid(113) Failed to set gid privileges to (-1,65534) now set to (0,0) uid=(0,0) [2006/01/19 12:29:09, 0] lib/util.c:smb_panic2(1554) PANIC: failed to set gid The only way to start smbd is to put this into smb.conf: guest account = root But I'm not sure if it's a great idea. smbd doesn't start with guest account set to nobody. I have that user in /etc/passwd and /etc/group though: root@OpenWrt# cat /etc/passwd root:xxxxxxxxxxxxxxxxxxx:0:0:root:/root:/bin/ash nobody:*:65534:65534:nobody:/var:/bin/false root@OpenWrt:/tmp/log/samba# cat /etc/group root:x:0: nogroup:x:65534: I've checked the archives, there were similar errors, but mostly when user wanted to change the password on Samba 2.x. Any ideas why can't I start smbd when "guest account = nobody"? -- Tomasz Chmielewski
Tomasz Chmielewski
2006-Jan-19 13:22 UTC
[Samba] "PANIC: failed to set gid" on mipsel [SOLVED]
Tomasz Chmielewski schrieb:> I just compiled Samba 3.0.21a for Linux/mipsel/uclibc. > > When I want to start smbd, it fails: > > [2006/01/19 12:29:09, 0] lib/util_sec.c:assert_gid(113) > Failed to set gid privileges to (-1,65534) now set to (0,0) uid=(0,0) > [2006/01/19 12:29:09, 0] lib/util.c:smb_panic2(1554) > PANIC: failed to set gid > > > The only way to start smbd is to put this into smb.conf: > > guest account = root > > But I'm not sure if it's a great idea. > > > smbd doesn't start with guest account set to nobody. > > I have that user in /etc/passwd and /etc/group though: > > root@OpenWrt# cat /etc/passwd > root:xxxxxxxxxxxxxxxxxxx:0:0:root:/root:/bin/ash > nobody:*:65534:65534:nobody:/var:/bin/false > > root@OpenWrt:/tmp/log/samba# cat /etc/group > root:x:0: > nogroup:x:65534: > > > I've checked the archives, there were similar errors, but mostly when > user wanted to change the password on Samba 2.x. > > Any ideas why can't I start smbd when "guest account = nobody"?I edited include/config.h, and added "#define USE_SETRESUID 1": /* Whether setresuid() is available */ /* #undef USE_SETRESUID */ #define USE_SETRESUID 1 Compiled, and now smbd starts correctly. -- Tomasz Chmielewski http://wpkg.org