[Samba] re. Initial Samba Setup

rruegner robowarp at gmx.de
Sat Nov 22 11:28:36 GMT 2003


Hi, sorry your smb.conf is to small
what is your samba version, what should samba do for you ,act as pdc or
member server ?
please give more info
here you have an example conf
I recommend you to use swat for initial smb.conf
# Samba config file created using SWAT
# from 192.168.1.1 (192.168.1.1)
# Date: 2003/06/21 14:41:58

# Global parameters
[global]
    workgroup = MIDEARTH
    server string = Samba3
    interfaces = eth0, lo
    bind interfaces only = Yes
    server schannel = Yes
    passdb backend = tdbsam, guest
    pam password change = Yes
    passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n
*Password*changed*
    username map = /etc/samba/smbusers
    password level = 8
    username level = 8
    unix password sync = Yes
    log level = 1
    syslog = 0
    log file = /var/log/samba/%m
    smb ports = 139 445
    name resolve order = wins bcast hosts
    time server = Yes
    socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192
    printcap name = CUPS
    disable spoolss = Yes
    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/groupadd %g
    add user to group script = /usr/sbin/usermod -G %g %u
    add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
    shutdown script = /var/lib/samba/scripts/shutdown.sh
    abort shutdown script = /sbin/shutdown -c
    logon script = scripts\logon.bat
    logon path = \\%L\Profiles\%U
    logon drive = H:
    logon home = \\%L\%U
    domain logons = Yes
    os level = 35
    preferred master = Yes
    domain master = Yes
    wins support = Yes
    ldap ssl = no
    utmp = Yes
    panic action = export DISPLAY=localhost:0; /usr/bin/X11/xterm -e gdb
/proc/%d/exe %d || /bin/sleep
    idmap uid = 15000-20000
    idmap gid = 15000-20000
    winbind separator = +
    comment = Samba 3.0.0
    hosts allow = 127., 192.168.1.
    use sendfile = Yes
    printing = cups
    veto files = /*.eml/*.nws/riched20.dll/*.{*}/
    veto oplock files = /*.doc/*.xls/*.mdb/
    include = /etc/samba/machine.

[homes]
    comment = Home Directories
    valid users = %S
    read only = No
    browseable = No

[print$]
    comment = Printer Drivers Share
    path = /var/lib/samba/drivers
    write list = jht, root
    printer admin = jht, root
    create mask = 0664
    directory mask = 0775

[netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    admin users = root, jht
    guest ok = Yes
    nt acl support = No
    browseable = No
    blocking locks = No
    csc policy = disable
    locking = No
    oplocks = No
    level2 oplocks = No
    posix locking = No
    strict locking = No
    share modes = No

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

[printers]
    comment = All Printers
    path = /var/spool/samba
    printer admin = root, jht
    create mask = 0600
    guest ok = Yes
    printable = Yes
    use client driver = Yes
    default devmode = Yes
    browseable = No

[media]
    comment = Public Stuff
    path = /export2
    read list = @users
    write list = jht
    read only = No
    blocking locks = No
    csc policy = disable
    locking = No
    oplocks = No
    level2 oplocks = No
    posix locking = No
    strict locking = No
    share modes = No

[data]
    comment = Data Stuff
    path = /export/data
    write list = @ntadmin
    read only = No
    blocking locks = No
    csc policy = disable
    locking = No
    oplocks = No
    level2 oplocks = No
    posix locking = No
    strict locking = No
    share modes = No

[cdr]
    comment = CDR Production Files
    path = /export/CDR
    force user = root
    read only = No
    case sensitive = Yes


----- Original Message ----- 
From: "Kevin Barry" <kfbarry at bellatlantic.net>
To: <samba at lists.samba.org>
Sent: Saturday, November 22, 2003 3:21 AM
Subject: [Samba] re. Initial Samba Setup


> On a recommendation from this list I checked the junklog file, the
> output from which I attached below. It looks as if it does not even see
> the linux machine as it indicates not seeing "explorer" which is the
> local netbios name. The Win XP machine does not even show in the log.
>
> Here is the last entry for nmbd.log:
>  *****
> [2003/11/21 06:24:58, 0] nmbd/nmbd.c:terminate(54)
>   Got SIGTERM: going down...
> [2003/11/21 17:36:19, 0] nmbd/nmbd.c:main(665)
>   Netbios nameserver version 3.0.0-15 started.
>   Copyright Andrew Tridgell and the Samba Team 1994-2003
> [2003/11/21 17:42:08, 0]
> nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
>   *****
>
>   Samba name server EXPLORER is now a local master browser for workgroup
> WORKGROUP on subnet 192.168.0.20
>
>   *****
>
> Here is my very basic smb.conf:
>
> [global]
> workgroup = Workgroup
> netbios name = explorer
> [share 1]
> path=/root
>
> lmhosts file:
> 127.0.0.1 localhost
>
>
> The junklog makes reference to a file /var/cache/samba/unexpected.tdb.
> There are several .tdb files in that directory but not that one.
>
>
>
> [root at corryard root]# smbclient -d9 -L explorer > junklog
> [2003/11/21 20:49:17, 5] lib/debug.c:debug_dump_status(359)
>   INFO: Current debug levels:
>     all: True/9
>     tdb: False/0
>     printdrivers: False/0
>     lanman: False/0
>     smb: False/0
>     rpc_parse: False/0
>     rpc_srv: False/0
>     rpc_cli: False/0
>     passdb: False/0
>     sam: False/0
>     auth: False/0
>     winbind: False/0
>     vfs: False/0
>     idmap: False/0
> [2003/11/21 20:49:17, 3] param/loadparm.c:lp_load(3926)
>   lp_load: refreshing parameters
> [2003/11/21 20:49:17, 3] param/loadparm.c:init_globals(1303)
>   Initialising global parameters
> [2003/11/21 20:49:17, 5] lib/iconv.c:smb_register_charset(87)
>   Attempting to register new charset UCS-2LE
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
>   Registered charset UCS-2LE
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
>   Attempting to register new charset UTF8
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
>   Registered charset UTF8
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
>   Attempting to register new charset ASCII
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
>   Registered charset ASCII
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
>   Attempting to register new charset 646
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
>   Registered charset 646
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
>   Attempting to register new charset UCS2-HEX
> [2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
>   Registered charset UCS2-HEX
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 3] param/params.c:pm_process(566)
>   params.c:pm_process() - Processing configuration file
> "/etc/samba/smb.conf"
> [2003/11/21 20:49:18, 3] param/loadparm.c:do_section(3429)
>   Processing section "[global]"
>   doing parameter workgroup = Workgroup
>   doing parameter netbios name = explorer
> [2003/11/21 20:49:18, 4] param/loadparm.c:handle_netbios_name(2721)
>   handle_netbios_name: set global_myname to: EXPLORER
> [2003/11/21 20:49:18, 4] param/loadparm.c:lp_load(3958)
>   pm_process() returned Yes
> [2003/11/21 20:49:18, 7] param/loadparm.c:lp_servicenumber(4068)
>   lp_servicenumber: couldn't find homes
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
>   Substituting charset 'UTF-8' for LOCALE
> [2003/11/21 20:49:18, 2] lib/interface.c:add_interface(79)
>   added interface ip=192.168.0.20 bcast=192.168.0.255
> nmask=255.255.255.0
> [2003/11/21 20:49:18, 5] lib/util.c:init_names(292)
>   Netbios name list:-
>   my_netbios_names[0]="EXPLORER"
> [2003/11/21 20:49:18, 3] client/client.c:main(2954)
>   Client started (version 3.0.0-15).
> [2003/11/21 20:49:18, 5] lib/gencache.c:gencache_init(59)
>   Opening cache file at /var/cache/samba/gencache.tdb
> [2003/11/21 20:49:18, 5] libsmb/namecache.c:namecache_fetch(195)
>   no entry for explorer#20 found.
> [2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_lmhosts(850)
>   resolve_lmhosts: Attempting lmhosts lookup for name explorer<0x20>
> [2003/11/21 20:49:18, 4] libsmb/namequery.c:getlmhostsent(598)
>   getlmhostsent: lmhost entry: 127.0.0.1 localhost
> [2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_wins(748)
>   resolve_wins: Attempting wins lookup for name explorer<0x20>
> [2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_wins(751)
>   resolve_wins: WINS server resolution selected and no WINS servers
> listed.
> [2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_hosts(944)
>   resolve_hosts: Attempting host lookup for name explorer<0x20>
> [2003/11/21 20:49:18, 3] libsmb/namequery.c:name_resolve_bcast(690)
>   name_resolve_bcast: Attempting broadcast lookup for name
> explorer<0x20>
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_KEEPALIVE = 0
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_REUSEADDR = 1
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_BROADCAST = 1
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(103)
>   Could not test socket option TCP_NODELAY.
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option IPTOS_LOWDELAY = 0
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option IPTOS_THROUGHPUT = 0
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_SNDBUF = 65535
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_RCVBUF = 65535
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_SNDLOWAT = 1
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_RCVLOWAT = 1
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_SNDTIMEO = 0
> [2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
>   socket option SO_RCVTIMEO = 0
> [2003/11/21 20:49:18, 5] libsmb/nmblib.c:send_udp(744)
>   Sending a packet of len 50 to (192.168.0.255) on port 137
> [2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:18, 5] libsmb/nmblib.c:send_udp(744)
>   Sending a packet of len 50 to (192.168.0.255) on port 137
> [2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:19, 5] libsmb/nmblib.c:send_udp(744)
>   Sending a packet of len 50 to (192.168.0.255) on port 137
> [2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
>   tdb(unnamed): tdb_open_ex: could not open file
> /var/cache/samba/unexpected.tdb: No such file or directory
> [root at corryard root]#
>
>
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>




More information about the samba mailing list