<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic samba Not starting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076028#M439586</link>
    <description>I have a rx660 server and tring to start samba and it fail.  I add the following entry to smb.conf:&lt;BR /&gt;&lt;BR /&gt;# Some defaults for winbind (make sure you're not using the ranges&lt;BR /&gt;# for something else.)&lt;BR /&gt;idmap uid = 20000-34000&lt;BR /&gt;idmap gid = 20000-34000&lt;BR /&gt;template homedir = /dev/null&lt;BR /&gt;template shell = /bin/false&lt;BR /&gt;; template primary group = "Domain Users"&lt;BR /&gt;winbind use default domain = yes&lt;BR /&gt;winbind enum users = yes&lt;BR /&gt;winbind enum groups = yes&lt;BR /&gt;winbind cache time = 300&lt;BR /&gt;# no is default&lt;BR /&gt;winbind nested groups = No&lt;BR /&gt;&lt;BR /&gt;When I start up samba I get the following error:&lt;BR /&gt;[2007/10/24 15:32:38, 1] nsswitch/winbindd.c:main(978)&lt;BR /&gt;  winbindd version 3.0.22 based HP CIFS Server A.02.03.01 started.&lt;BR /&gt;  Copyright The Samba Team 2000-2004&lt;BR /&gt;[2007/10/24 15:32:38, 0] nsswitch/winbindd_util.c:init_domain_list(540)&lt;BR /&gt;  Could not fetch our SID - did we join?&lt;BR /&gt;[2007/10/24 15:32:38, 0] nsswitch/winbindd.c:main(1079)&lt;BR /&gt;  unable to initialize domain list&lt;BR /&gt;&lt;BR /&gt;Anyway what can I do to get this started...</description>
    <pubDate>Wed, 24 Oct 2007 15:04:54 GMT</pubDate>
    <dc:creator>Ray Bell</dc:creator>
    <dc:date>2007-10-24T15:04:54Z</dc:date>
    <item>
      <title>samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076028#M439586</link>
      <description>I have a rx660 server and tring to start samba and it fail.  I add the following entry to smb.conf:&lt;BR /&gt;&lt;BR /&gt;# Some defaults for winbind (make sure you're not using the ranges&lt;BR /&gt;# for something else.)&lt;BR /&gt;idmap uid = 20000-34000&lt;BR /&gt;idmap gid = 20000-34000&lt;BR /&gt;template homedir = /dev/null&lt;BR /&gt;template shell = /bin/false&lt;BR /&gt;; template primary group = "Domain Users"&lt;BR /&gt;winbind use default domain = yes&lt;BR /&gt;winbind enum users = yes&lt;BR /&gt;winbind enum groups = yes&lt;BR /&gt;winbind cache time = 300&lt;BR /&gt;# no is default&lt;BR /&gt;winbind nested groups = No&lt;BR /&gt;&lt;BR /&gt;When I start up samba I get the following error:&lt;BR /&gt;[2007/10/24 15:32:38, 1] nsswitch/winbindd.c:main(978)&lt;BR /&gt;  winbindd version 3.0.22 based HP CIFS Server A.02.03.01 started.&lt;BR /&gt;  Copyright The Samba Team 2000-2004&lt;BR /&gt;[2007/10/24 15:32:38, 0] nsswitch/winbindd_util.c:init_domain_list(540)&lt;BR /&gt;  Could not fetch our SID - did we join?&lt;BR /&gt;[2007/10/24 15:32:38, 0] nsswitch/winbindd.c:main(1079)&lt;BR /&gt;  unable to initialize domain list&lt;BR /&gt;&lt;BR /&gt;Anyway what can I do to get this started...</description>
      <pubDate>Wed, 24 Oct 2007 15:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076028#M439586</guid>
      <dc:creator>Ray Bell</dc:creator>
      <dc:date>2007-10-24T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076029#M439587</link>
      <description>The error indicates the machine SID is not found by winbindd. Did you run samba_setup ?There should be an entry in smb.conf like&lt;BR /&gt;security = domain&lt;BR /&gt;&lt;BR /&gt;Usually the above entry and SID creation is done by samba_setup. You can run command&lt;BR /&gt;# smbpasswd -j &lt;DOMAIN-NAME&gt; -p &lt;DOMAIN-CONTROLLER&gt;&lt;/DOMAIN-CONTROLLER&gt;&lt;BR /&gt;to create the SID.&lt;/DOMAIN-NAME&gt;</description>
      <pubDate>Wed, 24 Oct 2007 21:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076029#M439587</guid>
      <dc:creator>Sameer_Nirmal</dc:creator>
      <dc:date>2007-10-24T21:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076030#M439588</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;assuming smb.conf is correct and you are joining a windows domain.&lt;BR /&gt;&lt;BR /&gt;net rpc join domaincontroller -U username&lt;BR /&gt;&lt;BR /&gt;#give password when prompted.&lt;BR /&gt;&lt;BR /&gt;You need a user that is empowered to add machines to the domain. Get that from the windows admins.&lt;BR /&gt;&lt;BR /&gt;Also, none of this will work at all without the very latest CIFS/9000 release from &lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With the help of the response center in Israel and the USA I solved a similar problem today.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Oct 2007 14:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076030#M439588</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-10-25T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076031#M439589</link>
      <description>Wow...&lt;BR /&gt;&lt;BR /&gt;I have never set up samba before and we just &lt;BR /&gt;implemented a centrify active directory set up here and now I'm total lost.   We are just testing this server to see how it would work and I need to probably start at gorund 1.   Do anyone have a cook book on setting up samba.   This is going to be very difficult as I see.   I did not knwo about running the setup_samba and none of that stuff.</description>
      <pubDate>Thu, 25 Oct 2007 15:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076031#M439589</guid>
      <dc:creator>Ray Bell</dc:creator>
      <dc:date>2007-10-25T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076032#M439590</link>
      <description>Hot dog, I'm almost at another hat...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is not the end all be all of setups but it is something that worked for me. Hope it helps...&lt;BR /&gt;&lt;BR /&gt;Make sure you installed the latest CIFS and Kerberos software as mentioned above. I did not use LDAP.&lt;BR /&gt;&lt;BR /&gt;Make sure Samba is stopped: stopsmb&lt;BR /&gt;&lt;BR /&gt;1. Run "samba_setup".&lt;BR /&gt;2. Do you wish to continue with the configuration?    y&lt;BR /&gt;3. Configure this HP CIFFS Server to - - BE - - a WINS server?   n&lt;BR /&gt;4. Configure this HP CIFFS Server to use an existing WINS server?    y&lt;BR /&gt;5. Enter IP or DNS name:  &lt;FULLY qualified="" name="" of="" a="" windows="" domain="" server=""&gt;&lt;BR /&gt;6. Confirm:    y&lt;BR /&gt;7. Configure this HP CIFFS server to use an NDS LDAP directory server?   n&lt;BR /&gt;8. Choose a role for your server:   4  (ADS member)&lt;BR /&gt;9. Confirm ADS:   y&lt;BR /&gt;10. Enter the name you wish the HP CIFFS Server to be known or hit enter to use the default:   &lt;ENTER&gt; (it'll use your HP-UX hostname )&lt;BR /&gt;11. Enter the fully qualified realm name:  &lt;WINDOWSREALMNAME.COM&gt;&lt;BR /&gt;12. Is this correct:   y&lt;BR /&gt;13. Enter the fully qualified server name of the ADS Domain Controller:  &lt;SAME name="" as=""&gt;&lt;BR /&gt;14. Confirm it:    y&lt;BR /&gt;15. Enter Domain Controller Administrators name:   &lt;ENTER either="" your="" name="" or="" the="" windows="" administrators="" name=""&gt;&lt;BR /&gt;16. Confirm it:    y&lt;BR /&gt;17. Enter Domain Administrators password:   &lt;ENTER password=""&gt;&lt;BR /&gt;18. Enter password again:   &lt;ENTER password="" again=""&gt;&lt;BR /&gt;19. View smb.conf parameters:   1&lt;BR /&gt;&lt;BR /&gt;Test Kerberos:&lt;BR /&gt;&lt;BR /&gt;20. Kerberos test at command line:  kinit &lt;YOUR windows="" id=""&gt;&lt;BR /&gt;21. Password:  &lt;ENTER your="" windows="" password=""&gt;&lt;BR /&gt;    If it returns without an error (or nothing at all but the command line), we are good.&lt;BR /&gt;22. Make sure MD5 is used in the Kerberos config file (change if needed): cat /etc/krb5.conf&lt;BR /&gt;        default_tkt_enctypes = DES-CBC-MD5&lt;BR /&gt;        default_tgs_enctypes = DES-CBC-MD5&lt;BR /&gt;&lt;BR /&gt;Join the domain:&lt;BR /&gt;&lt;BR /&gt;23. Run this: net ads join -U &lt;ENTER the="" name="" used="" from=""&gt; -d 10 2&amp;gt; /tmp/join.out.`date +%Y%m%d`&lt;BR /&gt;24. Enter the password&lt;BR /&gt;25. Look for "return code = 0" at the end of the file:  tail /tmp/join.out.`date +%Y%m%d`&lt;BR /&gt;&lt;BR /&gt;26. Start Samba:  startsmb          &lt;BR /&gt;&lt;BR /&gt;27. Another little test to run: Do steps #20 and #21&lt;BR /&gt;28. Now run this: smbclient -L &lt;HP-UX hostname=""&gt; -k&lt;BR /&gt;&lt;BR /&gt;If you share filesystems to Windows and Samba has started:&lt;BR /&gt;&lt;BR /&gt;29. From the Unix command line:  smbclient //&lt;HP-UX hostname=""&gt;/&lt;EXPORTED filesystem=""&gt; -U &lt;YOUR windows="" id=""&gt;&lt;BR /&gt;30. Password:   &lt;ENTER windows="" password=""&gt;&lt;BR /&gt;31. You'll get an "smb: \&amp;gt;" prompt. Type ls to see what your allowed to see in whatever fileshare you specified above.&lt;BR /&gt;32. Type exit to get out of the Samba prompt.&lt;BR /&gt;          &lt;BR /&gt;Test from Winders by opening a DOS window:          &lt;BR /&gt;&lt;BR /&gt;33. At the command line:   net view \\&lt;HP-UX hostname=""&gt;          &lt;BR /&gt;    You should see the shares available from the target HP-UX server.&lt;BR /&gt;&lt;BR /&gt;Now for my /etc/opt/smb.conf file:&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Location of Samba files and directories:&lt;BR /&gt;# /etc/opt/samba          - The config file (smb.conf) and&lt;BR /&gt;#                           user mapping (smbusers.map) file location.&lt;BR /&gt;# /etc/rc.config.d/samba  - Startup file&lt;BR /&gt;# /sbin/init.d/samba      - Startup file&lt;BR /&gt;# /sbin/rc2.d/S900samba   - The init 2 startup link&lt;BR /&gt;# /sbin/rc1.d/K100samba   - The init 1 kill link&lt;BR /&gt;# /opt/samba              - Program files&lt;BR /&gt;# /var/opt/samba          - Some lock files and such&lt;BR /&gt;# /var/adm/samba          - Log file directory (this is not a standard location)&lt;BR /&gt;#&lt;BR /&gt;# Global parameters&lt;BR /&gt;[global]&lt;BR /&gt;   preferred master = auto&lt;BR /&gt;   domain master = auto&lt;BR /&gt;   domain logons = no&lt;BR /&gt;   encrypt passwords = yes&lt;BR /&gt;   realm = &amp;lt;#11 above&amp;gt;&lt;BR /&gt;   wins server = &amp;lt;#5 above&amp;gt;&lt;BR /&gt;   wins support = no&lt;BR /&gt;        workgroup = &lt;WHATEVER the="" windows="" workgroup="" name="" is=""&gt;&lt;BR /&gt;        netbios name = &lt;THE windows="" name="" of="" your="" server=""&gt; &lt;BR /&gt;        server string = &lt;A line="" about="" what="" this="" server="" is="" serving="" target="_blank"&gt;&lt;BR /&gt;        security = ADS&lt;BR /&gt;        password server = &amp;lt;#5 above&amp;gt;&lt;BR /&gt;        username map = /etc/opt/samba/smbusers.map&lt;BR /&gt;        username level = 0&lt;BR /&gt;        syslog = 0&lt;BR /&gt;        log file = /var/adm/samba/samba.log.%m&lt;BR /&gt;        #log level = 10&lt;BR /&gt;        max log size = 5000&lt;BR /&gt;        local master = yes&lt;BR /&gt;        short preserve case = No&lt;BR /&gt;        dos filetime resolution = Yes&lt;BR /&gt;        case sensitive = Yes&lt;BR /&gt;        guest account = wins&lt;BR /&gt;        map to guest = bad uid&lt;BR /&gt;&lt;BR /&gt;[MYDIR]&lt;BR /&gt;        comment = Home Directories&lt;BR /&gt;        path = /home/%u&lt;BR /&gt;        browseable = Yes &lt;BR /&gt;        writeable = Yes&lt;BR /&gt;        veto files = /.profile/.cshrc/.exrc/.login/.systemmenu/&lt;/A&gt;&lt;/THE&gt;&lt;/WHATEVER&gt;&lt;/HP-UX&gt;&lt;/ENTER&gt;&lt;/YOUR&gt;&lt;/EXPORTED&gt;&lt;/HP-UX&gt;&lt;/HP-UX&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/YOUR&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/SAME&gt;&lt;/WINDOWSREALMNAME.COM&gt;&lt;/ENTER&gt;&lt;/FULLY&gt;</description>
      <pubDate>Thu, 25 Oct 2007 16:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076032#M439590</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2007-10-25T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: samba Not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076033#M439591</link>
      <description>I have done this and need to get with our  dns admin and it should work.  Thanks for the cook book and thi is exactly what I needed to complete this tasks...</description>
      <pubDate>Fri, 26 Oct 2007 08:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-not-starting/m-p/5076033#M439591</guid>
      <dc:creator>Ray Bell</dc:creator>
      <dc:date>2007-10-26T08:21:00Z</dc:date>
    </item>
  </channel>
</rss>

