[Samba] User Authentication and Username Map

Alec Joseph Rivera eijhei at gmail.com
Sun Nov 23 05:27:08 GMT 2008


On Sunday 23 November 2008 1:26:48 am Richard Nelson wrote:
> Greetings,
>
> Might be nice to see your smb.conf file, less anything that might be a
> security issue.

Here's my smb.conf and the username map file. Do you think there might be an 
configuration somewhere in windows that maybe is related to this, like use an 
NTLM auth or something?

Thanks Richard.
----------
smb.conf

[global]

        # Domain/Workgroup and Host identification
        workgroup = rivera-home
        netbios name = obiwan
        server string = Rivera Home LAN Primary Server

        # Browsing options
        os level = 40
        domain master = yes
        local master = yes
        preferred master = yes

        # WINS options
        wins support = yes
        name resolve order = wins lmhosts hosts bcast

        # Security options
        security = user
        domain logons = yes

        # Common services
        logon script = logon-%U.bat
        logon path = \\obiwan\profiles\%U
        auto services = %U

        # Optimizations
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65536 
SO_RCVBUF=65536
        max xmit = 2048

        log level = 3

        username map = /usr/local/samba/lib/usrmap

[netlogon]
        comment = Rivera Home LAN Logon Service
        path = /var/export/samba/netlogon
        browseable = no

[profiles]
        comment = Rivera Home LAN User Profiles
        path = /var/export/samba/profiles
        read only = no
        browseable = no

        create mode = 0600
        directory mode = 0700

[homes]
        comment = %U's Home Folder
        read only = no
        browseable = no

[public]
        comment = Rivera Home LAN Public Zone
        path = /var/export/samba/public
        ;read list =
        write list = agi, joy, wing

[images]
        comment = Pictures, Clip Arts and Various Images
        path = /var/export/samba/images
        ;read list =
        write list = agi, joy, wing
[tv]
        comment = TV Shows
        path = /var/export/samba/tv
        read list = agi, joy, wing
        write list = agi

[music]
        comment = Music Library
        path = /var/export/samba/music
        read list = agi, joy, wing
        write list = agi

----------
usrmap

agi = Alec "Alec Joseph"
wing = "Jo Annelyn"
joy = "Jo Angela"


More information about the samba mailing list