Pages : 1
#1 Le 09/07/2006, à 15:12
- litbos
Cups sur Server Edition => problème
Bonjour,
J'essaye de configurer mon imprimante (une Brother HL-1450) sur Ubuntu Server Edition.
Je réalise la configuration par l'interface Web.
Mais je n'arrive pas à enregistrer ma configuration , en effet je "Add printer" je rentre les données (nom,localisation,commentaire) ensuite je sélectionne le drivers (je l'ai palcé dans le répertoire /usr/share/cups/model)
Ensuite c'est parès que cela se corse, quand je fais valider : il affiche la demande de mot de passe que je n'ai pas évidemment. quelqu'un pourrait m'aider
voici mon fichier cupsd.conf
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
# These settings are configured in /etc/cups/cups.d/ports.conf so that
# changing them does not require to change this file.
# Listen localhost:631
# Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
# The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
# so that changing it does not require to change this file.
# Browsing Off
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
Allow 192.168.2.24
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow 192.168.2.24
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set- Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Ge t-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disa ble-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Pri nter Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Ad d-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Include files in /etc/cups/conf.d
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf
#
#
Mon fichier ports.conf
#Listen localhost:631
#Listen 192.168.2.252:631
#Listen /var/run/cups/cups.sock
Port 631
J'ai regardé sur différent forum et j'ai vu qu'il fallait parfois modifier le fichier group et ajouter mon utilisateur (admin dans mon cas) au lpadmin et a shadow
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:admin
tty:x:5:
disk:x:6:
lp:x:7:admin,cupsys
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:admin,cupsys
fax:x:21:
voice:x:22:
cdrom:x:24:admin
floppy:x:25:admin
tape:x:26:
sudo:x:27:
audio:x:29:admin
dip:x:30:admin
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:admin
utmp:x:43:
video:x:44:admin
sasl:x:45:
plugdev:x:46:admin
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
dhcp:x:101:
syslog:x:102:
klog:x:103:
crontab:x:104:
ssh:x:105:
admin:x:1000:admin
lpadmin:x:106:admin
scanner:x:107:admin,cupsys
mysql:x:108:
asterisk:x:1001:
ssl-cert:x:109:
Hors ligne
#2 Le 09/07/2006, à 17:21
- raspouille
Re : Cups sur Server Edition => problème
sous console.
raspouille@ubuntu:~$ sudo passwd root
login..........
Enter new UNIX password:
Enter new UNIX password:
raspouille@ubuntu:~$ su
Password:.................
root@ubuntu:/home/raspouille#
vous etes en superutulisateur:donc root et votre mot passe.
unbuntu refuse la connection avec localhost:631 pour raison securite
@+
Linux Mint Mate 17.3 GNU/Linux.
Hors ligne
Pages : 1