TechSpot

Problems with Home in samba

By dpoggi
Sep 8, 2011
Post New Reply
  1. Hello all,

    I got problems accesing to my home share in samba.
    This is mi smb.conf

    [global]
    workgroup = GAMMA
    server string = Controlador de Dominio
    passdb backend = tdbsam:/var/lib/samba/passdb.tdb
    log file = /var/log/samba/log.%u
    max log size = 50
    time server = Yes
    logon script = %U.bat
    logon path = \\%L\profile\%U
    logon drive = U:
    logon home = \\%L\Usuarios\%U
    domain logons = Yes
    preferred master = Yes
    domain master = Yes
    wins support = Yes
    cups options = raw

    [homes]
    comment = Home Directories
    path = /srv/Datos/Usuarios/u%
    valid users = u%
    read only = No
    create mask = 0700
    browseable = No

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    valid users = @usuarios
    write list = @usuarios
    guest ok = Yes
    browseable = No

    [profiles]
    comment = User profiles share
    path = /var/lib/samba/profiles/U%
    read only = No
    create mask = 0600
    security mask = 0700
    guest ok = Yes
    browseable = No

    When I go to a Windows Machine and that machine is in the domain and the user is added on samba I see my Home Directory buy I canĀ“t access to it.
    Also, as far as I know, I've seen that most of the cases, people uses a logon.bat file, as you can see on my configuration, I have set it in "/var/lib/samba/netlogon" u%.bat, but when I access on a windows machine nothing happens.

    I forgot, I'm Using Centos 6 and Samba 3.5.4
    Can any one help me?
    Thanks
     
  2. dpoggi

    dpoggi TS Rookie Topic Starter

    I forgot, I'm Using Centos 6 and Samba 3.5.4
     
  3. dpoggi

    dpoggi TS Rookie Topic Starter

    Thanks a lot CARAVEL
     
  4. jobeard

    jobeard TS Ambassador Posts: 9,095   +592

    My smb.cfg is attached.

    Some differences
    Code:
    [global]
            security = user
            encrypt passwords = yes
            smb passwd file = /etc/samba/smbpasswd
            username map   = /etc/samba/smbusers
            socket options   = TCP_NODELAY   SO_RCVBUF=8192   SO_SNDBUF=8192
            remote announce = 192.168.0.255    << assuming your subnet is 192.168.0.*
            local master = no
            domain master = no
            browseable = no
    
            name resolve order = hosts lmhosts
            dns proxy = no
            preserve case = yes
            default case = lower
            case sensitivity = yes
    
     [myshare]
        comment = Public Data
        path = /usr/share/SambaDir
        valid users = jeff torella nmaster
        public = yes
        writable = yes
        printable = no
        create mask = 0765
    
    Access from windows is using the Linux-User/Linux-Pwd
    (which says you control access by creating users on linux)
     

    Attached Files:

  5. dpoggi

    dpoggi TS Rookie Topic Starter

    Thanks jobeard
    As you can see I'm using Samba as a domain controler. But thanks any way for your help.
     
  6. jobeard

    jobeard TS Ambassador Posts: 9,095   +592

    the DC will change very little, given you can see the directory but not access it.
     

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...