Discussion:
[Samba] Why smbd (version 4.1.0) uses source3/smbd/server.c not source4/smbd/server.c
Jun Yi
2012-09-29 00:45:01 UTC
Permalink
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
Jun Yi
2012-09-29 00:45:01 UTC
Permalink
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
Volker Lendecke
2012-09-28 21:58:32 UTC
Permalink
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
Post by Jun Yi
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
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
hceuterpe
2012-09-29 02:38:22 UTC
Permalink
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.
Post by Jun Yi
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
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
hceuterpe
2012-09-29 02:38:22 UTC
Permalink
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.
Post by Jun Yi
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
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-09-29 03:11:02 UTC
Permalink
Post by Jun Yi
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-09-29 08:32:40 UTC
Permalink
Post by Jun Yi
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
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

Loading...