Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:hypathie:tutos:samba [13/09/2014 14:51] Hypathie [Côté client Linux] |
utilisateurs:hypathie:tutos:samba [13/09/2014 15:16] Hypathie [Côté client Linux] |
||
---|---|---|---|
Ligne 312: | Ligne 312: | ||
coucou-samba.txt</code> | coucou-samba.txt</code> | ||
- | ===== Côté client Linux ===== | + | =====Pour aller plus loin ===== |
+ | |||
+ | ====Partage d'imprimante avec samba ==== | ||
+ | ===Édition du fichier /etc/samba/smb.conf === | ||
+ | Il doit ressembler à cela. | ||
+ | <code>[printers] | ||
+ | comment = All Printers | ||
+ | browseable = yes | ||
+ | printable = yes | ||
+ | writeable = no | ||
+ | guest ok = no | ||
+ | read only = yes | ||
+ | create mask = 0700 | ||
+ | |||
+ | # Windows clients look for this share name as a source of downloadable | ||
+ | # printer drivers | ||
+ | [print$] | ||
+ | comment = Printer Drivers | ||
+ | path = /var/lib/samba/printers | ||
+ | browseable = yes | ||
+ | writeable = no | ||
+ | read only = yes | ||
+ | guest ok = no | ||
+ | # Uncomment to allow remote administration of Windows print drivers. | ||
+ | # You may need to replace 'lpadmin' with the name of the group your | ||
+ | # admin users are members of. | ||
+ | # Please note that you also need to set appropriate Unix permissions | ||
+ | # to the drivers directory for these users to have write rights in it | ||
+ | write list = root, @lpadmin | ||
+ | </code> | ||
+ | |||
+ | * Pour ajouter les imprimantes CUPS vers Samba : | ||
+ | <code user>cupsaddsmb -v -U root -a</code> | ||
+ | |||
+ | |||
+ | ==== Connexion d'un client Linux ==== | ||
- | ===En mode texte === | + | ===smbclient (mode texte) === |
On peut utiliser le logiciel smbclient sur un système linux. | On peut utiliser le logiciel smbclient sur un système linux. | ||
Ligne 352: | Ligne 387: | ||
===Accès au répertoire partagé du serveur === | ===Accès au répertoire partagé du serveur === | ||
- | FIXME | + | <code user>smbclient //192.168.0.14/sharing -U sharing</code> |
- | + | <code> | |
- | + | Enter sharing's password: | |
- | + | Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6] | |
- | On peut alors avoir accès au dossiers partagés et y faire ce qu'on veut avec les commandes smbclient. | + | smb: \> help |
- | + | ? allinfo altname archive blocksize | |
- | * Commande smbclient : | + | cancel case_sensitive cd chmod chown |
- | **''put''** ; **''get''** ; **''ls''** ; **''cd''** ; **''mkkdir''** ...\\ | + | close del dir du echo |
- | + | exit get getfacl geteas hardlink | |
- | Faire **''help''** pour en avoir une petite liste. | + | help history iosize lcd link |
- | =====Pour aller plus loin ===== | + | lock lowercase ls l mask |
- | + | md mget mkdir more mput | |
- | ====Partage d'imprimante avec samba ==== | + | newer open posix posix_encrypt posix_open |
- | ===Édition du fichier /etc/samba/smb.conf === | + | posix_mkdir posix_rmdir posix_unlink print prompt |
- | Il doit ressembler à cela. | + | put pwd q queue quit |
- | <code>[printers] | + | readlink rd recurse reget rename |
- | comment = All Printers | + | reput rm rmdir showacls setea |
- | browseable = yes | + | setmode stat symlink tar tarmode |
- | printable = yes | + | translate unlock volume vuid wdel |
- | writeable = no | + | logon listconnect showconnect .. ! |
- | guest ok = no | + | |
- | read only = yes | + | |
- | create mask = 0700 | + | |
- | + | ||
- | # Windows clients look for this share name as a source of downloadable | + | |
- | # printer drivers | + | |
- | [print$] | + | |
- | comment = Printer Drivers | + | |
- | path = /var/lib/samba/printers | + | |
- | browseable = yes | + | |
- | writeable = no | + | |
- | read only = yes | + | |
- | guest ok = no | + | |
- | # Uncomment to allow remote administration of Windows print drivers. | + | |
- | # You may need to replace 'lpadmin' with the name of the group your | + | |
- | # admin users are members of. | + | |
- | # Please note that you also need to set appropriate Unix permissions | + | |
- | # to the drivers directory for these users to have write rights in it | + | |
- | write list = root, @lpadmin | + | |
</code> | </code> | ||
- | * Pour ajouter les imprimantes CUPS vers Samba : | + | On peut alors avoir accès au dossiers partagés et y faire ce qu'on veut avec les commandes smbclient lister ci-dessus !. |
- | <code user>cupsaddsmb -v -U root -a</code> | + | |
- | + | ||
+ | :) | ||