OVH Cloud OVH Cloud

Samba

3 réponses
Avatar
franck
Quelqu'un connait un site avec des exemples pour configurer Samba, je
pense avoir tout bien configuré, je vois bien le linux dans mon groupe de
travail mais quand je vais dans linux, je suis refusé à
l'authentification pourtant j'utilise bien mes identifiants utilisateur,
j'ai essayé avec d'autres car j'ai créé un autre utilisateur=idem

extrait de mon fichier smb.conf au niveau de l'authentification :

# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
security = user

# You may wish to use password encryption. See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam guest

obey pam restrictions = yes

; guest account = nobody
invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = no

Je pensais avoir fait le necessaire !

Merci pour vos lumières

3 réponses

Avatar
Calimero
franck wrote:
Quelqu'un connait un site avec des exemples pour configurer Samba, je
pense avoir tout bien configuré, je vois bien le linux dans mon groupe de
travail mais quand je vais dans linux, je suis refusé à
l'authentification pourtant j'utilise bien mes identifiants utilisateur,
j'ai essayé avec d'autres car j'ai créé un autre utilisateur=idem


Tu as bien créé l'utilisateur "dans" samba via smbpasswd ?

--
@+
Calimero

Avatar
Thierry Houx
Quelqu'un connait un site avec des exemples pour configurer Samba, je
pense avoir tout bien configuré, je vois bien le linux dans mon groupe de
travail mais quand je vais dans linux, je suis refusé à
l'authentification pourtant j'utilise bien mes identifiants utilisateur,
j'ai essayé avec d'autres car j'ai créé un autre utilisateur=idem

extrait de mon fichier smb.conf au niveau de l'authentification :

# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
security = user

# You may wish to use password encryption. See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam guest

obey pam restrictions = yes

; guest account = nobody
invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *EntersnewsUNIXspassword:* %nn *RetypesnewsUNIXspassword:* %nn .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = no

Je pensais avoir fait le necessaire !

Merci pour vos lumières


Ne pas oublier de créer les mêmes utilisateurs sur le serveur Samba avec
les que sur les machines windows.

Si ton réseau local est sécurisé, tu n'as pas à multiplier les
précautions. voici ce j'ai dans global:

[global]
log file = /var/log/samba/log.%m
create mask = 0777
interfaces = eth1
hosts allow = 192.168.10.
printer admin = @adm
dns proxy = no
server string = Serveur Samba %v
read only = no
workgroup = MDKGROUP

# Accélération de SAMB
os level = 33
socket options = TCP_NODELAY

directory mask = 0777
printcap name = cups
security = share
null passwords = yes
max log size = 50
restrict anonymous = no
bind interfaces only = yes
domain master = no
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto

et pour un disque partagé:
[public2]
comment = Fichiers genealogie
path = /mnt/genea
guest ok = Yes
locking = No

avec ça, c'est ok chez moi.
En espérant avoir aidé!

Cordialement.
--
Thierry Houx ()
Tourisme en Haute-Normandie, informatique libre et généalogie:
http://thierry.houx.free.fr/index.html
Généalogie: membre CGPCSM N°72-2576

Avatar
Fournier Francis
Samba utilise sont propre fichier utilisateurs, suivant le mode de securité
il faut faire une syncro des comptes unix
avec les comptes samba, il est interrésant d'installer
webmin pour administré samba.
pour le site celui-ci est très bien
http://www.ac-creteil.fr/reseaux/systemes/linux/

"franck" a écrit dans le message de news:

Quelqu'un connait un site avec des exemples pour configurer Samba, je
pense avoir tout bien configuré, je vois bien le linux dans mon groupe de
travail mais quand je vais dans linux, je suis refusé à
l'authentification pourtant j'utilise bien mes identifiants utilisateur,
j'ai essayé avec d'autres car j'ai créé un autre utilisateur=idem

extrait de mon fichier smb.conf au niveau de l'authentification :

# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
security = user

# You may wish to use password encryption. See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam guest

obey pam restrictions = yes

; guest account = nobody
invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the
following
# parameters must be set (thanks to Augustin Luton
for
# sending the correct chat script for the passwd program in Debian
Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *EntersnewsUNIXspassword:* %nn
*RetypesnewsUNIXspassword:* %nn .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = no

Je pensais avoir fait le necessaire !

Merci pour vos lumières