Samba 'include' a per user config script
        Posted  
        
            by 
                cb0
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by cb0
        
        
        
        Published on 2010-02-18T19:07:33Z
        Indexed on 
            2011/11/19
            9:55 UTC
        
        
        Read the original article
        Hit count: 334
        
samba
|network-share
It is possible to use the include = /somepath/%u.smb.conf in the global section to call a script /somepath/cb0.smb.conf if the user cb0 connects to the samba server.
Unfortunately this does not wotk for me because testparm alway gives me
Can't find include file /somepath/.smb.conf
When I connect to the server I can enter a username and pass but it alway rejects the connection.
I'm using Samba Version 3.2.5
How can I achieve to load a custom user script depending on the user that is connecting ?
© Server Fault or respective owner