[ubuntu-it] printer administration : voglio l'interfaccia web di CUPS!
confrey
confrey a tariffenet.it
Ven 20 Apr 2007 21:28:23 BST
Giancarlo Pegoraro ha scritto:
> Su! su, non prendertela e vediamo cosa c'e' di nuovo questa volta :-)
> Allora, inserire il tuo utente nel gruppo "shadow" non mi sembra "no
> buono" (vedi sicurezza) :-)
>
lo tolgo? in effetti mi sono confuso, era cupsys da inserire in shadow,
ma poi cos'è 'sto gruppo shadow?
> Che versione hai di cups? Hai l'utente "cupsys"? Se si e' nel gruppo
> "lp"? Se no... ci devo pensare ;-) Che dice /etc/cups/cupsd.conf?
>
allora, ecco utenti e gruppi :
root a dariom-laptop:~# cat /etc/group | grep cupsys
lp:x:7:cupsys
dialout:x:20:cupsys,dario
shadow:x:42:cupsys
ssl-cert:x:104:cupsys
scanner:x:111:cupsys,hplip,dario
e il cupsd.conf, 'sporcato', perchè ci ho messo le mani....
root a dariom-laptop:~# cat /etc/cups/cupsd.conf
# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
# Restrict access to the admin pages...
Order allow,deny
Allow localhost
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
Allow localhost
</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
Allow from localhost
</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
Allow from localhost
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
Allow from localhost
</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
Allow from localhost
</Limit>
</Policy>
root a dariom
ecco, aspetto qualche chiarimento, ho bisogno di gestire le stampanti in
libertà...
grazie e saluti
confrey
--
confrey
********************************
Linux Registered User #240359
Linux Registered Machine #133789
Maggiori informazioni sulla lista
ubuntu-it