[Samba] Failed to Set UID Error and Can't become connected user
Error
Jeff Skoubye
skoubyed at comcast.net
Sat Mar 8 03:54:22 GMT 2008
I am certainly not an expert on Samba, so I apologize in advance for
this question if I should know the answer. A week ago our main file
server crashed and had to be replaced. Our new server is running Fedora
Core 8 and Samba 3.0.26a-6 but has been very unstable. We are running a
small network of Windows XP Pro and Home clients accessing the server
(10 clients).
ERROR ONE:
I am getting two errors in the logs, one fairly serious and one not
creating many problems as far as usability. I don't know if these
errors are related but I suspect they are. First the more serious
error. This is occurring only occasionally on different clients at
different times, and the client that is causing this error will loose
connection for a minute and has to restart some of the programs they are
in. Here is the log of this more serious error:
[2008/03/07 10:32:10, 0] lib/util_sec.c:set_effective_uid(205)
setresuid failed with EAGAIN. uid(502) might be over its NPROC limit
[2008/03/07 10:32:10, 0] lib/util_sec.c:assert_uid(101)
Failed to set uid privileges to (-1,502) now set to (0,0)
[2008/03/07 10:32:10, 0] lib/util.c:smb_panic(1654)
PANIC (pid 32012): failed to set uid
[2008/03/07 10:32:10, 0] lib/util.c:log_stack_trace(1758)
BACKTRACE: 22 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7d7d79d]
#1 /usr/sbin/smbd(smb_panic+0x5d) [0xb7d7d8cd]
#2 /usr/sbin/smbd [0xb7d83d9e]
#3 /usr/sbin/smbd [0xb7beed2c]
#4 /usr/sbin/smbd(pop_sec_ctx+0xa2) [0xb7beeec2]
#5 /usr/sbin/smbd(unbecome_root+0x17) [0xb7be2587]
#6 /usr/sbin/smbd(gid_to_sid+0x15c) [0xb7d339bc]
#7 /usr/sbin/smbd [0xb7bf58fc]
#8 /usr/sbin/smbd(get_nt_acl+0x4ac) [0xb7bfc0cc]
#9 /usr/sbin/smbd [0xb7c123bb]
#10 /usr/sbin/smbd(is_visible_file+0x2a0) [0xb7b9a030]
#11 /usr/sbin/smbd [0xb7b9a75d]
#12 /usr/sbin/smbd(dptr_ReadDirName+0x51) [0xb7b9a7c1]
#13 /usr/sbin/smbd [0xb7bd3a71]
#14 /usr/sbin/smbd [0xb7bd7e45]
#15 /usr/sbin/smbd(handle_trans2+0x237) [0xb7bdba57]
#16 /usr/sbin/smbd(reply_trans2+0x6bb) [0xb7be220b]
#17 /usr/sbin/smbd [0xb7bfef20]
#18 /usr/sbin/smbd(smbd_process+0x836) [0xb7bfffb6]
#19 /usr/sbin/smbd(main+0xbdd) [0xb7e5a90d]
#20 /lib/libc.so.6(__libc_start_main+0xe0) [0x389390]
#21 /usr/sbin/smbd [0xb7b83261]
[2008/03/07 10:32:10, 0] lib/fault.c:dump_core(181)
dumping core in /var/log/samba/cores/smbd
[2008/03/07 10:32:10, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:32:12, 1] smbd/service.c:make_connection_snum(1033)
drn (10.200.0.8) connect to service osnopen initially as user smbuser
(uid=508, gid=508) (pid 834)
[2008/03/07 10:32:27, 1] smbd/service.c:make_connection_snum(1033)
drn (10.200.0.8) connect to service OSN initially as user drn
(uid=502, gid=508) (pid 834)
[2008/03/07 10:32:27, 0] lib/util_sec.c:set_effective_uid(205)
setresuid failed with EAGAIN. uid(502) might be over its NPROC limit
[2008/03/07 10:32:27, 0] lib/util_sec.c:assert_uid(101)
Failed to set uid privileges to (-1,502) now set to (0,0)
[2008/03/07 10:32:27, 0] lib/util.c:smb_panic(1654)
PANIC (pid 834): failed to set uid
[2008/03/07 10:32:27, 0] lib/util.c:log_stack_trace(1758)
BACKTRACE: 22 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7d7d79d]
#1 /usr/sbin/smbd(smb_panic+0x5d) [0xb7d7d8cd]
#2 /usr/sbin/smbd [0xb7d83d9e]
#3 /usr/sbin/smbd [0xb7beed2c]
#4 /usr/sbin/smbd(pop_sec_ctx+0xa2) [0xb7beeec2]
#5 /usr/sbin/smbd(unbecome_root+0x17) [0xb7be2587]
#6 /usr/sbin/smbd(gid_to_sid+0x15c) [0xb7d339bc]
#7 /usr/sbin/smbd [0xb7bf58fc]
#8 /usr/sbin/smbd(get_nt_acl+0x4ac) [0xb7bfc0cc]
#9 /usr/sbin/smbd [0xb7c123bb]
#10 /usr/sbin/smbd(is_visible_file+0x2a0) [0xb7b9a030]
#11 /usr/sbin/smbd [0xb7b9a75d]
#12 /usr/sbin/smbd(dptr_ReadDirName+0x51) [0xb7b9a7c1]
#13 /usr/sbin/smbd [0xb7bd3a71]
#14 /usr/sbin/smbd [0xb7bd7e45]
#15 /usr/sbin/smbd(handle_trans2+0x237) [0xb7bdba57]
#16 /usr/sbin/smbd(reply_trans2+0x6bb) [0xb7be220b]
#17 /usr/sbin/smbd [0xb7bfef20]
#18 /usr/sbin/smbd(smbd_process+0x836) [0xb7bfffb6]
#19 /usr/sbin/smbd(main+0xbdd) [0xb7e5a90d]
#20 /lib/libc.so.6(__libc_start_main+0xe0) [0x389390]
#21 /usr/sbin/smbd [0xb7b83261]
[2008/03/07 10:32:27, 0] lib/fault.c:dump_core(181)
dumping core in /var/log/samba/cores/smbd
ERROR TWO:
The second error repeats almost constantly but doesn't seem to create
any actual problems on the client side. This is the error:
[2008/03/07 09:54:17, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 09:54:27, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 09:54:27, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 09:55:33, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 09:55:33, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:00:20, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:00:34, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:00:34, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:01:46, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:01:46, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:01:50, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:01:50, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:11:14, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:11:14, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:11:14, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:11:33, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:11:33, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
[2008/03/07 10:12:09, 0] smbd/service.c:make_connection_snum(928)
Can't become connected user!
This is my SMB.conf file.
# Samba config file created using SWAT
# from 10.200.0.41 (10.200.0.41)
# Date: 2008/03/07 16:57:35
[global]
workgroup = WWGP1
netbios name = LINUXBOX3
server string = Samba Server %v
username map = /etc/samba/smbusers
log level = 1
smb ports = 139
ldap ssl = no
valid users = @wwgp1
[osn]
comment = osn
path = /home/samba/osn
read only = No
create mask = 0770
directory mask = 0770
hide unreadable = Yes
[fax]
comment = fax
path = /home/samba/fax
force user = smbuser
force group = wwgp1
read only = No
create mask = 0770
directory mask = 0770
[osnexec]
comment = osnexec
path = /home/samba/osnexec
valid users = @osnexec
force group = osnexec
read only = No
create mask = 0770
directory mask = 0770
[osnopen]
comment = osnopen
path = /home/samba/osnopen
force user = smbuser
force group = wwgp1
read only = No
create mask = 0770
directory mask = 0770
Any help on this would be most appreciated. I have searched and
searched for what might be causing this without any real success. I
thought I had resolved some of this with a change to allow only port
139. It does seem to have slowed down some of the more serious errors,
but has not solved it. Thank you in advance for your help.
Sincerely,
Jeff Skoubye
More information about the samba
mailing list