Following are the steps we performed to run vfs and error encountered. Also attached vfs_demo.c file to look into. http://nnc3.com/LJ2013/LJ/220/11262.html Steps are followed from link above. [global] log file = /var/log/samba/%m.log log level = 10 max log size = 1000 level2 oplocks = true passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . server role = standalone server obey pam restrictions = yes map to guest = bad user encrypt passwords = true public = yes passwd program = /usr/bin/passwd %u passdb backend = tdbsam dns proxy = no server string = %h server (Samba, Ubuntu) default = share unix password sync = yes workgroup = WORKGROUP os level = 20 guest only = yes syslog = 0 panic action = /usr/share/samba/panic-action %d usershare allow guests = yes max log size = 1000 pam password change = yes [share] comment = Ubuntu file server path = /srv/samba/share browsable = yes guest ok = yes readonly = no create mask = 0755 vfs objects = full_audit full_audit:failure = all full_audit:success = all full_audit:prefix = %u|%I|%m|%S full_audit:failure = all !open full_audit:facility = LOCAL7 full_audit:priority = ALERT Above details when entered in smb.conf file client successfully connects to server using map network drive and all the messages are stored in syslog file. output when samba runs is : root at ubuntu:/etc/samba# sudo restart smbd smbd start/running, process 2619 root at ubuntu:/etc/samba# sudo restart nmbd nmbd start/running, process 2627 root at ubuntu:/etc/samba# smbclient //localhost/share -Usome-user%some-password Unknown parameter encountered: "server role" Ignoring unknown parameter "server role" Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3] smb: \> smb: \> ls . D 0 Tue Jan 20 04:37:27 2015 .. D 0 Tue Jan 20 04:33:15 2015 New Text Document.txt A 187 Fri Jan 2 03:35:24 2015 tesxt1.txt 24 Fri Jan 9 05:51:53 2015 new1.txt 8 Sun Jan 18 05:24:35 2015 test.txt 34 Wed Dec 10 11:37:38 2014 sharayu D 0 Mon Jan 19 02:13:29 2015 new1.txt~ 8 Sun Jan 18 05:24:35 2015 sharayu 1 D 0 Tue Dec 30 01:16:05 2014 test1.txt 29 Tue Jan 13 05:34:12 2015 New folder D 0 Wed Dec 10 11:41:16 2014 vcbbv.txt A 94 Mon Jan 19 05:39:22 2015 58771 blocks of size 262144. 17794 blocks available smb: \> put vcbbv.txt tesxt1.tx putting file vcbbv.txt as \tesxt1.tx (1.4 kb/s) (average 1.4 kb/s) smb: \> but if we add below part in smb.conf and restart samba , client is unable to connect to server. [share] comment = Ubuntu file server path = /srv/samba/share browsable = yes guest ok = yes readonly = no create mask = 0755 vfs objects = vfs_demo vfs_demo: audit path = vcbbv.txt //vcbbv.txt is file in shared folder Output is as follows: root at ubuntu:/etc/samba# smbclient //localhost/share -Usome-user%some-password Unknown parameter encountered: "server role" Ignoring unknown parameter "server role" Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3] tree connect failed: NT_STATUS_BAD_NETWORK_NAME Also we tried to add entire file name in vfs objects = vfs_demo.so , even that didnt work We copied vfs_demo.so file generated in after compiling vfs_demo.c in /usr/local/samba/lib/vfs where other vfs*.so files are placed . But vfs_demo modules isnt running. We also tried debugging smbd process uding GDB but vfs module doesnt seem to be called. Thanks.