Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[!RESOLU !] SAMBA : pb partage

Featured Replies

Posté(e)

Hi every linusien,

Ca y est, j'm'y suis mis, à LINUX ! :chinois: ... Après qq déboires foireux avec mon routeur Zyxel dont 2 ports sur 4 était HS :arrow:, mon réseau est enfin opérationnel avec un NetGear :oops:

Pour la config réseau, cf mon profile :arrow: (ça fait 35 jours que j'ai arrété de fumer :keskidit: )

Donc, ze pb : partager des fichiers avec SAMBA (Ich bin ein gross débutant dans linux :arrow: ).

Pour ce qui est de l'impression, tout marche déjà depuis tous les postes réseaux, puisque j'ai une imprimante réseau, donc le partage ne sert strictement à rien :D, je l'attaque en direct :mad2:

Modifié par dfi.informatique

Posté(e)
  • Auteur

Salut à tous,

Merci pour les liens et ... n'en jetez plus, sinon c'est le lien qui fera déborder SAMBA :cartonrouge:

Donc, j'ai cogité et essayé de faire marcher samba : ça marche que dans un sens :bisous: , c'est déjà un bon début :bisous:

Donc depuis linux, je monte des ressources réseau sur 1 PC en WXPSP2 et 1 PC en W98SE :win:

Par contre, depuis les postes WIN, je n'accède pas aux ressources linux... :-D:bisous:

Voici un aperçu de qq fichiers et de tests effectués :

:modoreussi: MERCI DE PRENDRE DU TEMPS POUR ANALYSER MON PROB :reflechis:

=========================================

Fichier /etc/hosts :

=========================================

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 lemanege localhost ambroise

192.168.1.3 pollux

192.168.1.5 zebulon

=========================================

Fichier /etc/samba/lmhosts :

=========================================

127.0.0.1 localhost

192.168.1.3 pollux

192.168.1.5 zebulon

=========================================

Fichier /etc/samba/smbusers :

=========================================

# Unix_name = SMB_name1 SMB_name2 ...

root = Administrateur

nobody = Invité

djipih = djipih

bea = bea

mama = mama

pauliline = pauliline

=========================================

Fichier /etc/samba/smbpasswd

=========================================

nobody:99:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[NU ]:LCT=434A5E20:

djipih:500:FB82CC71AE8FE8931D71060D896B7A46:75FCC5ECE80AB9CF5F9D930C8AB54A20:[u ]:LCT=434F6DBC:

bea:503:3432748F46855593AAD3B435B51404EE:9ED76CC9B9C4C7A55E7D7C125FF0832F:[u ]:LCT=434F6DD7:

mama:501:E3480747F77E6578810B1CB2BF3085A0:1BC24C8905B43B009E4F8A68466D1D33:[u ]:LCT=434F6DEE:

pauliline:502:4F31BBEA1F56A3C2AAD3B435B51404EE:D0D5020C4949592E4E6F48E33618CCDD:[u ]:LCT=434F6E0A:

root:0:FB82CC71AE8FE8931D71060D896B7A46:75FCC5ECE80AB9CF5F9D930C8AB54A20:[u ]:LCT=434F98CA:

=========================================

Fichier /etc/samba/smb.conf

=========================================

#======================= Global Settings ======================= #===============================================================

[Global]

guest account = nobody

netbios name = %h

server string = Serveur SAMBA Ver %v

security = SHARE

username map = /etc/samba/smbusers

workgroup = LEMANEGE

[Partage]

browseable = yes

comment = Repertoire Partage Commun

create mask = 0777

path = /Partage

public = yes

[DjiPih]

browseable = yes

comment = Repertoire Personnel Dji=pih

create mask = 0700

path = /home/djipih

public = no

valid users = djipih

=========================================

Depuis une console sur le serveur SAMBA

=========================================

[root@ambroise ~]# testparm

Load smb config files from /etc/samba/smb.conf

Processing section "[Partage]"

Processing section "[DjiPih]"

Loaded services file OK.

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters

[global]

workgroup = LEMANEGE

server string = Serveur SAMBA Ver %v

security = SHARE

username map = /etc/samba/smbusers

[Partage]

comment = Repertoire Partage Commun

path = /Partage

create mask = 0777

guest ok = Yes

[DjiPih]

comment = Repertoire Personnel Dji=pih

path = /home/djipih

valid users = djipih

create mask = 0700

[root@ambroise ~]# smbclient -L ambroise

Password:

Domain=[LEMANEGE] OS=[unix] Server=[samba 3.0.14a=2]

Sharename Type Comment

========= ==== =======

Partage Disk Repertoire Partage Commun

DjiPih Disk Repertoire Personnel Dji=pih

IPC$ IPC IPC Service (Serveur SAMBA Ver 3.0.14a=2)

ADMIN$ IPC IPC Service (Serveur SAMBA Ver 3.0.14a=2)

Domain=[LEMANEGE] OS=[unix] Server=[samba 3.0.14a=2]

Server Comment

========= =======

AMBROISE Serveur SAMBA Ver 3.0.14a=2

POLLUX Station Parents

ZEBULON Station Enfants

Workgroup Master

========= =======

LEMANEGE AMBROISE

Posté(e)
  • Auteur

Personne n'a une petite idée ? :p

Petite précision en +

Sur le serveur SAMBA, j'ai 2 partages

Sur mon poste XP en session utilisateur djipih, je vois bien les partages :

- [Partage] pour tous : je peux le parcourir, mais pas ecrire...

pbsamba9lo.th.jpg

- [Djipih] repertoire perso, je ne peux meme pas y acceder :

1/ Message d erreur : \\ambroise\djipih n est pas accessible, puis

pbsamba30nx.jpg

2/ Windows demande le mot de passe de Ambroise\Invite ?

pbsamba20py.th.jpg

Voici les securites du dossier partage sur SAMBA vu par Windoz :

pbsamba43nb.th.jpg

MERCI POUR VOTRE AIDE :incline::mdr2:

Modifié par dfi.informatique

Posté(e)
  • Auteur

:eeek2::eeek2::zarb: TOUT MES PARTAGES FONCTIONNENT :yes::yes::yes:

Merci dfi.informatique d'avoir percévéré jusqu'au bout en gardant ton sang froid... :mad2: (cela fait 42 jours que j'ai arrêter de fumer...)

Pour ceux dont le serveur samba interresse encore :pleure: , c'est la sécurité SELinux qui bloquait mes partages sur le serveur Linux : donc, du côté Windows, toutes les connections étaient arrêtées :p:pleure:

Donc un conseil, n'activez pas la sécurité SELinux avec SAMBA, sauf si vous savez ce que vous faites ou que vous êtes "es docteurs en administration linux" :pleure:

Encore un grand merci à dfi.informatique :pleure::p

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.