linux user group brescia

immagine del castello

Archivio della mailing list

samba

beppe gitrec a tin.it
Gio 13 Nov 2003 06:40:37 UTC
premetto che sono agli inizi con Linux e ho installato linux RH 9.a s.e.,
Linux accede alla cartella condivisa di windows solo con il mount da riga di
comando e con la password in chiaro
mount -t smbfs -o username=root,password=password //computerW2k/temp
/mnt/computerW2k

la directory di samba dove dovrebbe accedere w2k è su Linuxserver in /samba
gli utenti sono stati tutti installati con le relative password

da w2k invece ho questo messaggio di errore:
impossibile accedere a Linuxserver
impossibile trovare il percorso di rete.

controllando il visualizzatore eventi di w2k:
Il master ha ricevuto un annuncio server dal computer LINUXSERVER che
ritiene di essere il master per il dominio sul trasporto
NetBT_Tcpip_{D5E54172-8433-4A. Il master si sta arrestando o si sta forzando
un'elezione.

il ping tra i due sistemi funziona sia da uno che dall'altro, entrambi
accedono ad internet tramite lo stesso hub e router

telnet dà il seguente errore:
C:\Documents and Settings\Administrator>telnet 192.168.1.10
Connessione a 192.168.1.10...Impossibile aprire una connessione con l'host
sulla  porta 23 : Connessione non riuscita

su RH9.a ho attivato il servizio NFS e adesso da w2k mi dice:
Password non corretta o nome utente sconosciuto per \\Linuxserver
Connetti come:
Password:
un invio e mi fa accedere alla directory /samba da risorse di rete, ma il
servizio di stampa non funziona infatti ho letto che NFS non dispone di
questo servizio.
Anticipatamente ringrazio chi vorrà darmi dei suggerimenti.

Beppe



Qui di seguito il file di configurazione smb.conf:

#======================= Global Settings
=====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
        workgroup = mio_grp

# server string is the equivalent of the NT Description field
        server string = samba server

hosts allow = 192.168.1.3 192.168.1.10 127.0.0.1

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
        printcap name = /etc/printcap
        load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
        printing = cups


# this tells Samba to use a separate log file for each machine
# that connects
        log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
        max log size = 0


# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
        unix password sync = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*

# You can use PAM's password change control flag for Samba. If
# enabled, then PAM will be used for password changes when requested
# by an SMB client instead of the program listed in passwd program.
# It should be possible to enable this without changing your passwd
# chat parameter for most setups.

        pam password change = yes


# This parameter will control whether or not Samba should obey PAM's
# account and session management directives. The default behavior is
# to use PAM for clear text authentication only and to ignore any
# account or session management. Note that Samba always ignores PAM
# for authentication in the case of encrypt passwords = yes

        obey pam restrictions = yes

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
        username map = /etc/samba/smbusers
        dns proxy = no

#============================ Share Definitions
==============================
[homes]
        comment = Home Directories
        browseable = no
        writeable = yes
        valid users = %S
        create mode = 0664
        directory mode = 0775


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
# Set public = yes to allow user 'guest account' to print
        printable = yes


[samba]
        comment = condivisa
        path = /samba
        writeable = yes
        guest ok = yes





Maggiori informazioni sulla lista Lug