47 Responses

  1. james
    james January 3, 2013 at 19:15 |

    Unable to adduser.

    Error(ldb): Failed to add user ‘test’: – objectclass; Cannot add CN=test,CN-Users,DC=mydomain,DC-local, parent does not exist!

    Any ideas? Thanks

    Reply
    1. IJ
      IJ February 21, 2013 at 21:43 |

      Hi,

      I had the same issue, the password solution did not work. I tested it with Ubuntu 12.10 using samba4.0.3.

      What could i possibly missed? I followed the tutorial and reached till adding users.

      Hoping for your advice.

      Thanks!
      -IJ-

      Reply
  2. James
    James January 8, 2013 at 03:36 |

    Paul, The Samba wiki page shows for Ubuntu to use libacl1- dev to install. Any difference? How would I also go about installing the optional development libraries and programs? ie. cups? Any examples. Thanks!

    Reply
    1. james
      james January 8, 2013 at 18:29 |

      Paul, Disregard my prior comment about libacl1-dev. My Kindle truncated the website. Do you however know if Kerberos needs to be installed separately from the samba4.0.0 package?

      Reply
  3. james
    james January 9, 2013 at 17:40 |

    Domain is setup but I do have a few issues. First I can’t get my clients to have internet access. DNS will not resolve. I have to manually provide a second DNS on the client to access the internet(ie. 8.8.8.8). I tried changing the DNS forwarder to my router IP as well as my prior DNS server on the network. No luck. Second the start up script doesn’t “work”. I’m able to connect to the domain with the script but I have to run “/usr/local/samba/sbin/samba” after boot to allow access to smbclient shares. Weird. After reading the Wiki on the 4.0.0 release we do need a few prerequisites prior to install. May work even after install. https://wiki.samba.org/index.php/Samba_4/OS_Requirements#Recommended_optional_development_libraries_and_Programs:

    Reply
  4. James
    James January 9, 2013 at 17:44 |

    Domain is setup but I do have a few issues. First I can’t get my clients to have internet access. DNS will not resolve. I have to manually provide a second DNS on the client to access the internet(ie. 8.8.8.8). I tried changing the DNS forwarder to my router IP as well as my prior DNS server on the network. No luck. Second the start up script doesn’t “work”. I’m able to connect to the domain with the script but I have to run “/usr/local/samba/sbin/samba” after boot to allow access to smbclient shares. Weird.

    After reading the Wiki on the 4.0.0 release we do need a few prerequisites prior to install. May work even after install. https://wiki.samba.org/index.php/Samba_4/OS_Requirements#Recommended_optional_development_libraries_and_Programs:

    Reply
  5. James
    James January 10, 2013 at 01:11 |

    Paul, How do you have your Hosts file and what shows up in your resolv.conf file? I know we can’t directly edit this file any longer.

    Reply
  6. Julián
    Julián January 14, 2013 at 14:53 |

    Hi, i follow step by step, but when i want to test the server with the command:
    “$ /usr/local/samba/bin/smbclient -L localhost -U%”
    the system display this error:
    Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

    I can’t join to the server, any idea? thanks.-

    Reply
    1. Julián
      Julián January 14, 2013 at 16:49 |

      the problem gone by adding the user account with the same name as the ubuntu server user.
      But the boot script don’t work for me, i need to start the service manually to see the shares.
      In the script this path is ok?? DAEMON=/usr/local/samba1/sbin/samba.
      I try to change “samba1” to “samba” but still not work.

      Thanks for the guide!

      Reply
    2. Oliver
      Oliver February 26, 2013 at 17:03 |

      Try with “sudo”….

      Reply
  7. James
    James January 17, 2013 at 18:10 |

    Paul, How do I add local entries to Samba’s internal DNS? I have other servers on the network I would like samba to resolve for clients. I edited my hosts file so the Samba4 server could ping it. But the clients can’t. Thanks.

    Reply
  8. IJ
    IJ February 21, 2013 at 22:12 |

    Hi,

    I dont know if this makes a difference, I didn’t not download the samba.txt but instead created samba file under it using nano command.

    What configuration will most like trigger the error in adding user?

    Can i execute some commands to check my configuration?

    Pls. guide me.
    Thanks,

    -IJ-

    Reply
  9. Oliver
    Oliver February 26, 2013 at 16:58 |

    Dear Paul,
    thanks for the good tutorial!
    Together with the Samba-Wiki it enables me to install an AD-like server using Ubuntu 12.04. Great!
    One thing… There is a typo in the startup-script that can be downloaded: “samba.txt”. In the path there is “samba1”. The “1” has to be removed, than it works!

    Regards,
    Oliver

    Reply
  10. William
    William March 18, 2013 at 18:12 |

    I am being taught about all this in college using windows server 2008 and would love to practice at home. I also use ubuntu(desktop 12.04) on my laptop but wouldn’t be up to scratch on the terminal commands but I can follow the instructions never the less.

    Looks like a great guide all the same and I am going to try it.

    I know the ubuntu server has no GUI by default(suppose I could add it)
    Anyway, can I manage AD and group policies etc through a GUI
    Or does everything need to go through the terminal?

    Cheers,
    Wil

    Reply
    1. James
      James March 21, 2013 at 01:41 |

      Everything can be controlled with windows rsat.

      Reply
  11. David
    David April 17, 2013 at 19:24 |

    Thanks, Paul.

    I found this really clear and very helpful.

    Cheers 🙂

    Reply
  12. Roger
    Roger May 7, 2013 at 14:50 |

    Thanks for the tutorial! Do you know if samba4 will work with Ubuntu 11.xx?

    Reply
  13. bong
    bong May 18, 2013 at 14:48 |

    Any steps on how to update samba 4 if you change the server IP address? Lets says the IP address was 192.168.1.5, then there was a change in network in the samba 4 server IP address needs to be change to 192.168.2.5? I changed the network adapter, host file and resolv.conf file but still samba 4 internal dns points to the old IP.

    Thank you in advance.

    Reply
  14. bong
    bong May 19, 2013 at 15:46 |

    Thank you @Paul, I found that website before and apply the said step but it seems not successful, if I type $ host -t A mySamba4.local the A record still points to old address. There was an old forum that instruct to delete the browse.dat and wins.dat but I don’t know where these files can be found.

    Then I decided to setup another Ubuntu Server 12.04 and samba 4. I was able to create home folder and group share with quota. We have a 200+ employees and I am planning to use samba 4 as our PDC.

    Reply
  15. bong
    bong June 3, 2013 at 07:37 |

    Good day, I was able to change my samba4 IP from the instruction in this link:
    https://lists.samba.org/archive/samba-technical/2013-May/092279.html

    After that steps, I must first log in using the command $ kinit administrator@MYDOMAIN.COM in order to proceed in using the command samba-tool dns update. My samba4 is now up and running using the new IP address. Now I am exploring on how to add/configure reverse lookup zone for its internal DNS.

    Any advise regarding reverse lookup zone in samba4 internal DNS? Thank you.

    Reply
  16. Chuck White
    Chuck White June 18, 2013 at 00:35 |

    Lost power and now when trying to use the samba-tool i get this message
    “Traceback (most recent call last):
    File “/usr/bin/samba-tool”, line 26, in
    from samba.netcmd.main import cmd_sambatool
    File “/usr/lib/python2.7/dist-packages/samba/netcmd/main.py”, line 23, in
    from samba.netcmd.dbcheck import cmd_dbcheck
    File “/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py”, line 23, in
    from samba.auth import system_session
    ImportError: libauth4.so: cannot open shared object file: No such file or directory”

    any help would be great!

    Reply
  17. TimBix
    TimBix August 6, 2013 at 06:57 |

    I’ve got a major issue after the step ‘Add a user to Samba 4’ I rebooted my server again and from that point on I cant log in with ANY account.
    When logging in on the console it just returns to the login: prompt after typing the correct credentials. If I use the wrong credentials it says ‘Login Incorrect’ so it’s checking the password correctly but it just returns to the login prompt and I cant get into the server at all.
    I also tried to change the password through the recovery mode but running passwd on any account now just returns to the command prompt and doesn’t ask for the new password. Any help greatly appreciated

    Reply
  18. Manuel Matz
    Manuel Matz August 31, 2013 at 16:33 |

    Hey, I did all untill the point of “Realm:”;but I do not have a domain or anything like that.I just wanna exchange files between an Ubuntu and Windows laptops(both are in an ad hoc wireless network already).I follow all of your site instructions but it sounds it ‘s for somebody who wants the samba server side.I need the ubuntu to be a client and these instructions are not for that.
    Q:How I do remove all of the samba I install untill the point of “Realm”.
    Thanks.

    Reply
  19. Jije
    Jije January 5, 2014 at 12:35 |

    Paul,

    Your Script samba auto start when boot not run. I have to use manual ( /usr/local/samba/sbin/samba ).

    Can you help me for fix this problem. So tired if we always start samba with manually..

    Thanks

    Reply
  20. Trevor
    Trevor January 14, 2014 at 08:54 |

    Hi,

    I finally got samba4 running on Ubuntu 12.04 LTS but I was having issues starting it. In the logs it had an error that it couldnt bind to 0.0.0.0:389 as it was already in use. I have an OpenLDAP server running on this port for authentication for my mail users. When I stop OpenLDAP Samba works perfectly and my domain is functional. Is there any way to have both working? and maybe use OpenLDAP as the DC Authentication mechanism.

    TIA
    Trevor.

    Reply
  21. Kim
    Kim March 12, 2014 at 17:13 |

    Hey,
    don’t know if you’re still replying to this post, but I have gotten everything up and running. And I connect a win8 client to the domain. The problem is that the client gets no internet, it resolves IPs, but gets no response. just timeouts. Any ideas?

    Kim

    Reply
  22. Damien1992
    Damien1992 May 26, 2017 at 00:16 |

    This article is on 19 spot in google’s search results, if you want more visitors, you should build more backlinks to your articles, there is one trick to get free, hidden backlinks from authority forums, search
    on youtube; how to get hidden backlinks from forums

    Reply

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close