Volker Lendecke
2012-Sep-28 21:58 UTC
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
Hello! Would it be possible that you give us a broader picture of what you want to achieve? You seem to be running latest code in configurations that are vastly different from what the Samba Team supports. If you could tell us more about your goals, we might be able to help you and recommend a configuration that does what you need. With best regards, Volker On Fri, Sep 28, 2012 at 05:45:01PM -0700, Jun Yi wrote:> Dear everybody, > > Could anybody told me the reason? Does the code of samba 3 and samba 4 mix > together in the master branch. > How can I let smbd be compiled from source4/smbd/server.c? > > Thanks and Have a good weekend > > Jun > > The following is what I got from the command line: > > junyij-2.desktop$ ./smbd > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/lib/dumpcore.c:249(dump_core_setup) > Unable to setup corepath for smbd: Operation not permitted > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1182(main) > smbd version 4.1.0pre1-DEVELOPERBUILD started. > Copyright Andrew Tridgell and the Samba Team 1992-2012 > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1197(main) > error opening config file '/usr/local/samba/etc/smb.conf' > > > junyij-2.desktop$ ./smbd -V > Version 4.1.0pre1-DEVELOPERBUILD > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba-- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de
Jun Yi
2012-Sep-29 00:45 UTC
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
Dear everybody, Could anybody told me the reason? Does the code of samba 3 and samba 4 mix together in the master branch. How can I let smbd be compiled from source4/smbd/server.c? Thanks and Have a good weekend Jun The following is what I got from the command line: junyij-2.desktop$ ./smbd [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) Unable to open new log file '/usr/local/samba/var/log.smbd': Permission denied [2012/09/28 17:36:18, 0] ../source3/lib/dumpcore.c:249(dump_core_setup) Unable to setup corepath for smbd: Operation not permitted [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) Unable to open new log file '/usr/local/samba/var/log.smbd': Permission denied [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1182(main) smbd version 4.1.0pre1-DEVELOPERBUILD started. Copyright Andrew Tridgell and the Samba Team 1992-2012 [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1197(main) error opening config file '/usr/local/samba/etc/smb.conf' junyij-2.desktop$ ./smbd -V Version 4.1.0pre1-DEVELOPERBUILD
hceuterpe at gmail.com
2012-Sep-29 02:38 UTC
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
At first glance, and it doesn't look like you are firing up the smbd daemon as root. It has to be started as root, or else you definitely will see lots of access denied errors against log files. On Sep 28, 2012 7:45 PM, "Jun Yi" <yi.jun.mail at gmail.com> wrote:> Dear everybody, > > Could anybody told me the reason? Does the code of samba 3 and samba 4 mix > together in the master branch. > How can I let smbd be compiled from source4/smbd/server.c? > > Thanks and Have a good weekend > > Jun > > The following is what I got from the command line: > > junyij-2.desktop$ ./smbd > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/lib/dumpcore.c:249(dump_core_setup) > Unable to setup corepath for smbd: Operation not permitted > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1182(main) > smbd version 4.1.0pre1-DEVELOPERBUILD started. > Copyright Andrew Tridgell and the Samba Team 1992-2012 > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1197(main) > error opening config file '/usr/local/samba/etc/smb.conf' > > > junyij-2.desktop$ ./smbd -V > Version 4.1.0pre1-DEVELOPERBUILD > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Andrew Bartlett
2012-Sep-29 03:11 UTC
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
On Fri, 2012-09-28 at 17:45 -0700, Jun Yi wrote:> Dear everybody, > > Could anybody told me the reason? Does the code of samba 3 and samba 4 mix > together in the master branch. > How can I let smbd be compiled from source4/smbd/server.c?source4/smbd/server.c is compiled as 'samba'. the source3/smbd/server.c is compiled as 'smbd'. Both form part of the Samba 4.0 release, and Samba 4.0 as an AD DC will use both components (and many other shared parts). We hope to reduce the confusion from our historical development practices as we further integrate our unified Samba release. What we will release with Samba 4.0 is just the first step, we hope to continue the process as time and resources allow. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org
steve
2012-Sep-29 08:32 UTC
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
On 29/09/12 02:45, Jun Yi wrote:> Dear everybody, > > Could anybody told me the reason? Does the code of samba 3 and samba 4 mix > together in the master branch. > How can I let smbd be compiled from source4/smbd/server.c? > > Thanks and Have a good weekend > > Jun > > The following is what I got from the command line: > > junyij-2.desktop$ ./smbd > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/lib/dumpcore.c:249(dump_core_setup) > Unable to setup corepath for smbd: Operation not permitted > [2012/09/28 17:36:18, 0] ../lib/util/debug.c:592(reopen_logs_internal) > Unable to open new log file '/usr/local/samba/var/log.smbd': Permission > denied > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1182(main) > smbd version 4.1.0pre1-DEVELOPERBUILD started. > Copyright Andrew Tridgell and the Samba Team 1992-2012 > [2012/09/28 17:36:18, 0] ../source3/smbd/server.c:1197(main) > error opening config file '/usr/local/samba/etc/smb.conf' > > > junyij-2.desktop$ ./smbd -V > Version 4.1.0pre1-DEVELOPERBUILD >Hi Try running it as root instead. HTH Steve