#1 Le 31/10/2013, à 22:10
- Bilousky06
Pb dossier partagé entre windows et Ubuntu
Bonjour
je suis un novice en cette OS mais arrive quand meme a me debrouiller , mais la je seche un peu .
J'ai suivi des tuto et conseil en installant samba , mais un probleme de mot de passe persiste .
Sur mon reseau je trouve bien les dossier que j'ai partagé sur ubuntu ( que cela soit sur le pc windows ou sur ubuntu ) , mais dans sur les 2 pc lorsque je veux rentrer dans le dossier il me demande un login et mot de passe , mais sur un pc windows ou ubuntu aucun ne reconnait le log et pass.
Mon compte sur ubuntu ou sur windows a le meme log et le meme mot de passe , sur samba j'ai bien autorisé l'utilisateur ( moi ) a acceder aux dossier .
Et pourtant cela coince , j'ai regardé un peu le smb.conf , mais je ne vois rien ( a mon niveau ) qui me choque .
je ne pense pas qu'il faut activer le serveur WIN ?
Dans global le workgroup est le bon .
J'ai regardé dans authentication c'est peut etre la que viendrait logiquement le probleme , non ? ou dans domaine ?
voici ma config :
####### Authentication ####### # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/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 = no # If you are using encrypted passwords, Samba will need to know what # password database type you are using. ; passdb backend = tdbsam obey pam restrictions = yes # 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 Ian Kahan <<kahan@informatik.tu-muenchen.de> for # sending the correct chat script for the passwd program in Debian Sarge). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . # 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 = yes # This option controls how unsuccessful authentication attempts are mapped # to anonymous connections map to guest = bad user ########## Domains ########### # Is this machine able to authenticate users. Both PDC and BDC # must have this setting enabled. If you are the BDC you must # change the 'domain master' setting to no # ; domain logons = yes # # The following setting only takes effect if 'domain logons' is set # It specifies the location of the user's profile directory # from the client point of view) # The following required a [profiles] share to be setup on the # samba server (see below) ; logon path = \\%N\profiles\%U # Another common choice is storing the profile in the user's home directory # (this is Samba's default) # logon path = \\%N\%U\profile # The following setting only takes effect if 'domain logons' is set # It specifies the location of a user's home directory (from the client # point of view) ; logon drive = H: # logon home = \\%N\%U # The following setting only takes effect if 'domain logons' is set # It specifies the script to run during logon. The script must be stored # in the [netlogon] share # NOTE: Must be store in 'DOS' file format convention ; logon script = logon.cmd # This allows Unix users to be created on the domain controller via the SAMR # RPC pipe. The example command creates a user account with a disabled Unix # password; please adapt to your needs ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u # This allows machine accounts to be created on the domain controller via the # SAMR RPC pipe. # The following assumes a "machines" group exists on the system ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u # This allows Unix groups to be created on the domain controller via the SAMR # RPC pipe. ; add group script = /usr/sbin/addgroup --force-badname %g
Quelqu'un a une idée
je vous remercie , bonne soirée
pour etre precis je suis sous voyager , je ne sais pas si cela a une grande importance .
Hors ligne
#2 Le 01/11/2013, à 15:08
- toutafai
Re : Pb dossier partagé entre windows et Ubuntu
Bonjour,
pas de partage "en dur" dans le fichier smb.conf ? et on dirait qu'il en manque un bout : tiu est sur de l'avoir copié collé en intégralité ?
si oui, comment as tu partagé des dossier sous ubuntu ?
retour de
sudo smbtree
testparm
Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).
Hors ligne
#3 Le 01/11/2013, à 18:50
- Bilousky06
Re : Pb dossier partagé entre windows et Ubuntu
Voici le resultat :
moi @ PCSERVEUR ~
└─ $ ▶ sudo smbtree
[sudo] password for moi:
Enter root's password:
GROUPEDETRAVAIL
\\PCSERVEUR PCSERVEUR server (Samba, Ubuntu)
\\PCMAT
\\PCFAMILLY
\\FREEBOX Freebox Server
\\FREEBOX\IPC$ IPC Service (Freebox Server)
\\FREEBOX\Disque dur AutoShare of fbxhdiskd partition 2
moi @ PCSERVEUR ~
└─ $ ▶ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[TELECHARGEMENT_D_]"
Processing section "[video]"
Processing section "[SERIE]"
Processing section "[TELECHARGEMENT UBUNTU]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = GROUPEDETRAVAIL
server string = %h server (Samba, Ubuntu)
encrypt passwords = No
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[TELECHARGEMENT_D_]
path = /media/moi/703661073660CFA0/TELECHARGEMENT_D_
valid users = moi
read only = No
[video]
path = /media/moi/703661073660CFA0/VIDEO
valid users = moi
read only = No
[SERIE]
path = /media/moi/703661073660CFA0/SERIE
valid users = moi
read only = No
[TELECHARGEMENT UBUNTU]
path = /home/moi/Public/TELECHARGEMENT UBUNTU
valid users = moi
read only = No
moi @ PCSERVEUR ~
Par contre je ne sais pas si cela a une relation avec ce probleme de droit mais je ne suis pas autorisé a modifier un fichier .conf ( samba ou minidnla ) ou autre fichier situé dans etc. pourtant j'ai reussi a trouvé comment mettre mon compte en admin et dans parametre avance tout coché .
Se qui est bizarre c'est que sur le click droit d'un dossier par la possibilite de faire "partager dossier" comme j'ai vue sur certain forum
Dernière modification par Bilousky06 (Le 01/11/2013, à 18:53)
Hors ligne
#4 Le 08/11/2013, à 10:22
- toutafai
Re : Pb dossier partagé entre windows et Ubuntu
Salut,
Désolé pour le délais de réponse. Edite le fichier /etc/samba/smb.conf avec cette commande:
sudo gedit /etc/samba/smb.conf
et a la fin de la section [global] avant la section [printers] rajoute la ligne suivante
security = share
enregistre reboot et re test
Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).
Hors ligne