Alexander Newald
2003-Dec-20 22:38 UTC
[Samba] Error: Failed to set uid privileges to (-1, 65535) now set to (0, 0)
Hello,
I've installed the latest samba (3.0.1) on my local test mashine and get the
fullowing error while opening a file when I already have the status of:
Samba version 3.0.1
PID Username Group Machine
-------------------------------------------------------------------
21236 alex users alex (192.168.0.111)
Service pid machine Connected at
-------------------------------------------------------
tmp 21236 alex Fri Dec 19 17:38:25 2003
alex 21236 alex Fri Dec 19 17:37:40 2003
Locked files:
Pid DenyMode Access R/W Oplock Name
--------------------------------------------------------------
21236 DENY_NONE 0x20089 RDONLY NONE
/home/alex/test.mp3
The error is:
[2003/12/19 17:37:40, 0] lib/util_sec.c:assert_uid(95)
Failed to set uid privileges to (-1,65535) now set to (0,0)
[2003/12/19 17:37:40, 0] lib/util.c:smb_panic(1400)
PANIC: failed to set uid
[2003/12/19 17:37:40, 0] lib/util.c:smb_panic(1408)
BACKTRACE: 17 stack frames:
#0 /opt/samba-3.0.1/sbin/smbd(smb_panic+0x1ab) [0x81a5751]
#1 /opt/samba-3.0.1/sbin/smbd [0x81a9fb8]
#2 /opt/samba-3.0.1/sbin/smbd(set_effective_uid+0x30) [0x81aa182]
#3 /opt/samba-3.0.1/sbin/smbd [0x80b49b2]
#4 /opt/samba-3.0.1/sbin/smbd [0x80b4a70]
#5 /opt/samba-3.0.1/sbin/smbd(set_sec_ctx+0x14d) [0x80b5225]
#6 /opt/samba-3.0.1/sbin/smbd(change_to_user+0x361) [0x80ade1d]
#7 /opt/samba-3.0.1/sbin/smbd [0x80c3914]
#8 /opt/samba-3.0.1/sbin/smbd(make_connection+0x6b3) [0x80c46af]
#9 /opt/samba-3.0.1/sbin/smbd(reply_tcon_and_X+0x2af) [0x8095d3d]
#10 /opt/samba-3.0.1/sbin/smbd [0x80c0c05]
#11 /opt/samba-3.0.1/sbin/smbd [0x80c0cb6]
#12 /opt/samba-3.0.1/sbin/smbd(process_smb+0x1ed) [0x80c1005]
#13 /opt/samba-3.0.1/sbin/smbd(smbd_process+0x16c) [0x80c1b4c]
#14 /opt/samba-3.0.1/sbin/smbd(main+0x7b4) [0x81ff828]
#15 /lib/libc.so.6(__libc_start_main+0xa2) [0x40d28552]
#16 /opt/samba-3.0.1/sbin/smbd(chroot+0x39) [0x8071911]
[2003/12/19 17:37:40, 1] smbd/service.c:make_connection_snum(705)
alex (192.168.0.111) connect to service alex initially as user alex
(uid=1001, gid=100) (pid 21236)
Playing of the test.mp3 file stops, the new file (Test black jpg image) I
try to open is mostly ok but at 1 out of 10 the file is trunked.
Samba is running as
root 22350 0.0 0.4 5240 2004 ? S 17:09 0:00
/opt/samba-3.0.1/sbin/smbd -s /etc/smb.conf
alex 21236 0.4 0.7 5916 3172 ? S 17:37 0:02 \_
/opt/samba-3.0.1/sbin/smbd -s /etc/smb.conf
root 8591 0.0 0.4 3668 1828 ? S 17:09 0:00
/opt/samba-3.0.1/sbin/nmbd -s /etc/smb.conf
smb.conf is the default smb.conf except I changed "hosts allow" to
hosts
allow = 192.168.0. 127.
I build samba from source with:
./configure --prefix=/opt/samba-3.0.1 \
--sysconfdir=/etc/samba \
--localstatedir=/var/spool/samba \
--with-smbmount && make && make install
I hope the this is enough information for now and the right mailing list.
Alexander Newald
bill eight
2003-Dec-21 00:23 UTC
[Samba] upgraded from samba 2.2.7a on RH to 3.0.1 get errors running smbstatus
Hello,
Please advise,
upgraded from Samba 2.2.7a on RH to
Samba 3.0.1
Getting error messages when running
smbstatus.
I am assuming samba is NOT running when
I see this ... what to do now?
Must I redo smb.conf file completely?
(I am still new to this .. )
thanks
b
----- errors from smbstatus ------
[root@test samba]# smbstatus
params.c:Parameter() - Ignoring badly formed line in
configuration file: Account
' -s /bin/false -M %u
params.c:Parameter() - Ignoring badly formed line in
configuration file: ogon \&
& chmod 644 /var/lib/samba/netlogon/%U.bat;
params.c:Parameter() - Ignoring badly formed line in
configuration file: l*authe
ntication*tokens*updated*successfully*
Unknown parameter encountered: "domain admin group"
Ignoring unknown parameter "domain admin group"
sessionid.tdb not initialised
Service pid machine Connected at
-------------------------------------------------------
Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting
[root@test samba]# smbstatus
params.c:Parameter() - Ignoring badly formed line in
configuration file: Account' -s /bin/false -M %u
params.c:Parameter() - Ignoring badly formed line in
configuration file: ogon \&& chmod 644
/var/lib/samba/netlogon/%U.bat;
params.c:Parameter() - Ignoring badly formed line in
configuration file:
l*authentication*tokens*updated*successfully*
Unknown parameter encountered: "domain admin group"
Ignoring unknown parameter "domain admin group"
sessionid.tdb not initialised
Service pid machine Connected at
-------------------------------------------------------
Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting
------ smb.conf file -------------------
#======================= Global Settings
====================================[global]
smb passwd file = /etc/samba/smbpasswd
add user script = /usr/sbin/useradd -d
/dev/null -g machines -c 'Machine
Account' -s /bin/false -M %u
# -d = home dir, -g group, -c comment, -s shell, -M
userhome dir will NOT be created
pam password change = yes
encrypt passwords = yes
wins support = true
max log size = 0
obey pam restrictions = yes
directory mode = 775
security = user
passwd program = /usr/bin/passwd %u
printing = lprng
create mode = 775
dns proxy = no
only user = yes
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
valid users = @samba
root preexec = /usr/bin/ntlogon -u %U -g %G -o
%a -d /var/lib/samba/netl
ogon \&& chmod 644 /var/lib/samba/netlogon/%U.bat;
printcap name = /etc/printcap
invalid users = root
logon script = %U.bat
passwd chat = *New*password* %n\n
*Retype*new*password* %n\n *passwd:*al
l*authentication*tokens*updated*successfully*
domain admin group = admin1 admin2
user = @samba
domain logons = yes
unix password sync = Yes
workgroup = WG
server string = WG Server
log file = /var/log/samba/%m.log
delete readonly = yes
netbios name = server
load printers = yes
root postexec = rm -f
/var/lib/samba/netlogon/%U.bat
os level = 33
write list = @samba
logon home = "\\server\%U"
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be
mapped to a guest user
; map to guest = bad user
# Un-comment the following and create the netlogon
directory for Domain Logons
[netlogon]
comment = Network Logon Service
path = /usr/local/samba/lib/netlogon
guest ok = yes
writable = no
share modes = no
# Un-comment the following to provide a specific
roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is
no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to
print
guest ok = no
writable = no
printable = yes
[data]
path = /usr/data
force group = samba
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/