[Samba] Samba 3.4.6 - problems with vfs objects = recycle

christian grassu at googlemail.com
Mon Jun 14 11:40:00 MDT 2010


Hi,

I just upgraded samba from 3.0.37 to 3.4.6 on a gentoo machine. After
converting the passwd file (pdbedit -i smbpasswd -e tdbsam) I tried to
login from a windows client but it didn''t work. After commenting the
vfs-recycle entries in the shares definition I could successfully
login. I cannot find any hint that the vfs objects in samba 3.4 has
changed. Can somebody help?

Thanks in advance,
grassu

----
this is the error I see in samba log:

# tail -f /var/log/samba/log.ws-mo
Can't find a vfs module [recycle]
[2010/06/13 10:58:02,  0] smbd/vfs.c:322(smbd_vfs_init)
  smbd_vfs_init: vfs_init_custom failed for recycle
[2010/06/13 10:58:02,  0] smbd/service.c:846(make_connection_snum)
  vfs_init failed for service Projekte
[2010/06/13 10:58:02,  0] lib/module.c:59(do_smb_load_module)
  Error trying to resolve symbol 'init_samba_module' in
/usr/lib/samba/vfs/recycle.so: /usr/lib/samba/vfs/recycle.so:
undefined symbol: init_samba_module

----
but recycle.so is there:

 # locate recycle.so
/usr/lib/samba/vfs/recycle.so

----
my smb.conf

# less /etc/samba/smb.conf

[global]
  workgroup     = Server
  server string = PDC [Server :: Samba Server %v]
  printcap name = cups
  printing      = cups
  cups options  ="raw"
  load printers = yes
  log level     = 1
  log file      = /var/log/samba/log.%m
  max log size  = 10000
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  interfaces    = lo eth0 eth1
  bind interfaces only = yes
  hosts allow   = 127.0.0.1 192.168.2.0/24
  hosts deny    = 0.0.0.0/0
  security      = user
  encrypt passwords = yes

##### PDC-Eintraege ###
  local master = yes
  os level = 65
  domain master = yes
  preferred master = yes
  null passwords = no
  hide unreadable = yes
  domain logons = yes
  logon script = %G.bat
  logon path = \\%L\profiles\%U
  logon drive = z:
  logon home = \\%L\%U\.9xprofile
  wins support = yes
  name resolve order = wins lmhosts hosts bcast
  dns proxy = no
  time server = yes
#  smb passwd file = /home/samba/smbpasswd
  add user script = /usr/sbin/useradd -m %u
  delete user script = /usr/sbin/userdel -r %u
  add group script = /usr/sbin/groupadd %g
  delete group script = /usr/sbin/groupdel %g
  add user to group script = /usr/sbin/usermod -G %g %u
  add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
  passwd program = /usr/bin/passwd %u
  passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r
\ "*Password changed*"
  dos charset = 850
  unix charset = ISO8859-1

[netlogon]
  path = /home/samba/netlogon
  public = no
  writeable = no
  browseable = no

[profiles]
  path = /home/samba/profiles
  browseable = yes
  writeable = yes
  default case = lower
  preserve case = no
  short preserve case = no
  case sensitive = no
  hide files = /desktop.ini/ntuser.ini/NTUSER.*/
  write list = @staff root
  create mode = 0600
  directory mode = 0700
  guest ok = no
  csc policy = disable

[Intern]
  comment = [I:] Bueroadministration
  path = /home/shares/Intern
  public = no
  writeable = yes
  browseable = yes
  valid users = @admin-staff
  write list = @admin-staff
  read list = @admin-staff
  create mask = 0660
  directory mask = 0770
  force group = admin-staff
#  vfs objects = recycle
#  recycle:repository=.recycle.%u
#  recycle:keeptree=1
#  recycle:noversions=1

<SNIP>

----

and the build settings:

net-fs/samba-3.4.6 was built with the following:
USE="acl client cups ldap netapi pam readline server smbclient syslog
-addns -ads -aio -avahi -caps -cluster -debug -doc -examples -fam -ldb
-quota -smbsharemodes -swat -winbind"


More information about the samba mailing list