[Samba] Samba error

John H Terpstra jht at samba.org
Thu Jan 30 17:57:07 GMT 2003


On Thu, 30 Jan 2003, Rodrigo Nascimento wrote:

> Hi list,

Suggest you try the following.

- John T.

>
> # smbclient -L \\SAMBA
> added interface ip=10.3.0.221 bcast=10.3.0.255 nmask=255.255.255.128
> added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
> Got a positive name query response from 127.0.0.1 ( 10.3.0.221 )
> session request to SAMBA failed (SUCCESS - 0)
> Got a positive name query response from 127.0.0.1 ( 10.3.0.221 )
> session request to *SMBSERVER failed (SUCCESS - 0)
>
> Why I run this command occur this errors?
>
> See my conf file:
>
> # SAMBA CONFIGURATION FILE
> # Date: 30/01/2003
> # by Rodrigo Nascimento
>
> ###########################################
> # Global Settings
> ###########################################
>
> [global]
>
> ## Basic Server Settings ##
> ###########################
>         workgroup = SAPSWAP
>         netbios name = SAMBA
>         server string = Area de troca de arquivos
>         ; hosts allow = < IPs allowed >
>         log file = /usr/local/samba/var/log.%m
>         log level = 1
>         max log size = 4098
>         security = server
>         socket options = TCP_NODELAY
>         interfaces = 10.3.0.221/25 127.0.0.1
>         code page directory = /usr/local/lib/codepages
>         client code page = 850

You are in USER mode security. ie: Have a local /etc/passwd and smbpasswd
file. That is the default. The default applies because you have not set
(do not need it to get default behaviour):
	security = [SHARE | USER | SERVER | DOMAIN]

>
> ## Networking Browsing ##
> #########################
>         local master = no
>         os level = 20
>
> ## WINS and Name Resolution ##
> ##############################
>         wins support = yes
>         ; wins server =
>         ; wins proxy = <yes or no>
>         ; dns proxy = <yes or no>
>
> ## Password and Authentication ##
> #################################
>         password server = *                     ## Enter with PDC Name
          ^^^^^^^^^^^^^^^^^^^
This means: Do not process username/password locally, but send it to the
machine named. The '*' means ask WINS or do broadcast to find the
authentication server. You do NOT want this unless security = [ SERVER |
DOMAIN ].

Please remove the:
	password server = *

>         encrypt passwords = yes

Now this means you will use a local smbpasswd file. Did you add the user
'root' and every normal user to the smbpasswd file by doing:
	smbpasswd -a root
	smbpasswd -a 'username'

If not, you need to do that if you specify ecrypted passwords.

>
> ########################################
> # Shares Definitions
> ########################################
>
> [netlogon]
>         comment = Network Logon Service
>         path = /usr/local/samba/lib/netlogon
>         guest ok = yes
>         writeable = no
>         share modes = no
>
> [transfer]
>         comment = Transfer Files
>         path = /transfer
>         writeable = yes
>         browseable = yes
>
>
> Help me, please...
>
> Thanks !
>                             ___
>                            (0 0)
> +----------------------------V------------+
> | Rodrigo Nascimento                      |
> | Linux Users Brazil     o0o   o0o        |
> +------------------------( )---( )--------+
>
>
>
>
>
>
>
>
>
>
>
>
> http://www.ieg.com.br
>

-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list