Bonjour à tous,
J'ai un souci avec un réglage Samba. J'ai un serveur Gentoo Linux qui fonctionne très bien (merci pour lui ) et je l'ai configuré avec Samba, pour y accéder avec un Mac et avec un PC. Premier objectif : partage de fichiers. Ca fonctionne très bien depuis les deux. Pour les puristes, oui, j'ai aussi installé un partage AFP pour le Mac uniquement...
Je voudrais aussi partager une imprimante (HP Deskjet 930c). Elle est installée avec CUPS et partagée avec Samba. Ca fonctionne très bien depuis la page d'administration de CUPS (page de test - il n'y a pas de GUI car la machine est un serveur web). Ca fonctionne très bien aussi depuis Windows, je vois l'imprimante et ça imprime parfaitement. Ça ne fonctionne pas depuis le Mac, je ne vois même pas l'imprimante. Etrange non ?
Voici mes configs SMB et CUPS. Je crois que le problème vient définitivement de Samba, puisque l'impression fonctionne sans le Mac... A votre bon coeur, donc
/etc/samba/smb.conf (seulement ce qui est actif et personnalisé)
/etc/cups/cupsd.conf
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 [global] workgroup = WORKGROUP netbios name = mithlond_smb server string = mithlond_smb printcap name = cups load printers = yes disable spoolss = yes show add printer wizard = no printing = cups cups options = "raw" use client driver = no guest account = smbguest map to guest = bad user security = user encrypt passwords = yes local master = no [printers] comment = All Printers path = /var/spool/samba browseable = yes # set to yes to allow user 'guest account' to print. guest ok = yes public = yes writable = no printable = yes # create mode = 0700 # printer admin = root,xs,smbguest
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 User lp Group lp # Show general information in error_log. LogLevel info SystemGroup lpadmin # Allow remote access Port 631 Listen /var/run/cups/cups.sock # Disable printer sharing and shared printers. Browsing Off DefaultAuthType Basic <Location /> # Allow remote administration... Order allow,deny Allow @LOCAL </Location> <Location /admin> AuthType Basic AuthClass System Encryption Required # Allow remote administration... Order allow,deny Allow @LOCAL </Location> <Location /admin/conf> AuthType Basic Require user @LOCAL # Allow remote access to the configuration files... Order allow,deny Allow @LOCAL </Location> <Policy default> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> AuthType Basic Require user @SYSTEM Order deny,allow </Limit> <Limit CUPS-Authenticate-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> # Only the owner or an administrator can cancel a job... <Limit Cancel-Job> Order deny,allow Require user @OWNER @SYSTEM </Limit> <Limit All> Order deny,allow </Limit> </Policy>
Partager