Find the answer to your Linux question:
Results 1 to 6 of 6
Hello folks. Anyone done a deployment of Samba3 > 3.3.4 Had to install this version as I am preparing a domain for Windows 7 computers. My installation on CentOS went ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Location
    Nairobi, Kenya
    Posts
    3

    Samba3 3.3.14 on CentOS 5 deployment

    Hello folks.

    Anyone done a deployment of Samba3 > 3.3.4

    Had to install this version as I am preparing a domain for Windows 7 computers.

    My installation on CentOS went well. smbd and nmbd are running OK. I am able to test user accounts with the

    smbclient -U usertest \\host\usertest

    however, I cannot seem to be able to add a computer, even a Win XP workstation to the domain. I used smb.conf files from a previous Samba 3.0.28 with minimal modifications.

    Any assistance appreciated; for one with a successful deployment, kindly forward your smb.conf file, here is mine:

    [global]
    workgroup = DOMAIN
    netbios name = DOMAIN_SERVER
    server string = Samba Server Version %v
    passdb backend = tdbsam
    log file = /var/log/samba/%m.log
    max log size = 40
    add user script = /usr/sbin/useradd -m "%u"
    add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u
    logon script = %u.bat
    logon path = \\DOMAIN_SERVER\profiles\%U
    logon home = \\DOMAIN_SERVER\homes\%U
    domain logons = Yes
    domain master = Yes
    wins support = Yes
    cups options = raw

    [homes]
    comment = Home Directories
    read only = No

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

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    share modes = No

    [profiles]
    comment = Profiles Folder
    path = /var/lib/samba/profiles
    read only = No
    profile acls = Yes

    OS: CentOS 5.3

    Regards,
    Mmugo.

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    I'm just starting to build a Centos 5/Samba server to replace one running Fedora 4, so I don't have a working config to share. But I do know that there are registry hacks needed on Windows 7 machines to join them to a Samba-based domain. Google "samba windows 7" and you'll hit a Samba wiki article about them. also this one:
    Use Samba With Windows 7 Clients - www.enterprisenetworkingplanet.com

    That doesn't explain why you can't join an XP machine. What happens?

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Location
    Nairobi, Kenya
    Posts
    3
    Noted. In fact, further troubleshooting showed me that the Domain is not even being detected. That is that the Windows error message is the same with Samba started or stopped.

    There must me something up with my installation because i have done the setup with CentOS' recommended Samba distro and it worked OK.

    So I'm asking myself:
    - Is Samba 3.3.14 good to go on CentOS 5.3?
    - My nmdb and smbd are totally healthy, where would i start with my troubleshooting?

    Regards,
    Mmugo

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Well, if smbclient works (from another Linux box), it wouldn't be iptables or SELinux, so I'd focus on the workstations. Windows Firewall on? Can you telnet to the smbd ports 135, 139, 445. I think UDP is mostly used, but I think those TCP ports should be responsive.

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Posts
    15

    running samba...

    Follwoing is my smb content.Its working for me with RHEL 5.

    Compare and check ur config.

    #======================= Global Settings =====================================
    [global]

    workgroup = WORKGROUP
    netbios name = cnilab
    server string = PDC
    security = user
    hosts allow = 172.16.100. 127.
    log file = /var/log/samba/%m.log
    max log size = 50
    passdb backend = tdbsam
    os level = 35
    domain master = yes
    preferred master = yes
    domain logons = yes
    logon script = logon1.bat
    logon path = \\%L\Profile\%U
    logon home = \\%L\home\%U
    logon drive = H:

    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    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/groupmod -A %u %g
    delete user from group script = /usr/sbin/groupmod -R %u %g
    add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
    #username map = /etc/samba/smbusers
    encrypt passwords = yes
    ;smb password file = /etc/samba/smbpasswd
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*Password* %n \n *Please*Retype*New*Password %n \n *Password*Successfully*Updated*
    ; guest ok = no
    ; guest account = nobody
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

    #============================ Share Definitions ==============================
    [home]
    comment = Home Directories
    path = /home
    valid users = %U
    browseable = no
    writable = yes

    [netlogon]
    comment = Network Logon Service
    path = /usr/local/samba/lib/netlogon
    guest ok = yes
    writable = yes
    share modes = no


    [Profile]
    path = /usr/local/samba/Profile
    Writable = yes
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700
    browseable = no
    guest ok = no
    printable = no


    [test]
    path = /test
    valid users = root test hydengr administrator engineer mdsengr
    writable = yes

  6. #6
    Just Joined!
    Join Date
    Nov 2010
    Location
    Nairobi, Kenya
    Posts
    3
    Thanks people for the reply. I'll run the setup in my Lab and see hoe it runs.

    I reverted my setup back to Samba 3.0.28, so for now the Windows & PCs will have to stay out of the domain.

    I understand that there's a Windows 7 plugin that enables such hosts to fit seamlessly in an existing Samba domain without the need to upgrade Samba. Someone with news on that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...