I am trying, but failing, to migrate an openSUSE Samba server from Samba
3.4.3 on openSUSE 11.2 (old) to Samba 3.5.7 on openSUSE 11.4 (new).
Samba 3.4.3-3.8.1-2508-SUSE-SL11.2
Samba 3.5.7-1.17.1-2505-SUSE-SL11.4-i386
I have a simple smb.conf to share a directory (shareddocs) with a few
users with Linux logins. My smb.conf is identical on both servers. I?ve
added log level = 3 and a temptest share to help me debug my problem.
[global]
workgroup = PLACEFARM
add machine script = /usr/sbin/useradd-c Machine -d /var/lib/nobody -s
/bin/false %m$
domain logons = No
domain master = No
security = user
passdb backend = smbpasswd
encrypt passwords = Yes
wins support = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
log level = 3
[shareddocs]
comment = Shared Documents
inherit acls = Yes
path = /home3/shareddocs
read only = No
create mask = 0777
directory mask = 0777
[temptest]
comment = Shared Documents
inherit acls = Yes
path = /tmp
read only = No
create mask = 0777
directory mask = 0777
My /etc/fstab is also simple.
/dev/disk/by-id/scsi-SATA_ST3160812AS_5LS4VNNE-part1swapswapdefaults 0 0
/dev/disk/by-id/scsi-SATA_ST3160812AS_5LS49CQX-part1swapswapdefaults 0 0
/dev/disk/by-id/scsi-SATA_ST3160812AS_5LS4VNNE-part2/ext3acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_ST3160812AS_5LS49CQX-part2/homeext3acl,user_xattr
1 2
/dev/disk/by-id/usb-Seagate_Desktop_2GHLNCSY-0:0-part1/home3ext4acl,user_xattr
1 2
proc/procprocdefaults 0 0
sysfs/syssysfsnoauto 0 0
debugfs /sys/kernel/debugdebugfs noauto 0 0
usbfs/proc/bus/usbusbfsnoauto 0 0
devpts/dev/ptsdevptsmode=0620,gid=5 0 0
On the old server, everything works as expected.
On the new server, I can see that both shareddocs and temptest exist.
I can open temptest on the new server and see the files in /tmp. I can
create new files and they are owned by the correct Linux uid.
[2011/10/22 17:47:22.630444,1] smbd/service.c:1070(make_connection_snum)
martin-laptop (::ffff:192.168.222.108) connect to service temptest
initially as user martin (uid=1000, gid=100) (pid 18967)
But when I try to access shareddocs on the new server, I can?t. Here are
some of the errors in log.smbd.
[2011/10/22 17:50:58.926344,3] smbd/msdfs.c:848(get_referred_path)
get_referred_path: |shareddocs| in dfs path \pavilion\shareddocs is not
a dfs root.
[2011/10/22 17:50:58.926386,3] smbd/error.c:80(error_packet_set)
error packet at smbd/trans2.c(8018) cmd=50 (SMBtrans2) NT_STATUS_NOT_FOUND
[2011/10/22 17:50:58.936951,3] smbd/open.c:460(open_file)
Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2011/10/22 17:50:58.937024,3] smbd/error.c:80(error_packet_set)
error packet at smbd/error.c(160) cmd=162 (SMBntcreateX)
NT_STATUS_ACCESS_DENIED
What am I doing wrong and how can I fix it?
Martin