Here is a bit diff, n mayb you are right, it could b the cause of it not
sure. The thing the place is networked and has a great number of PC's.
After an install on the machine, a script is ran to install all basic
packages n software that will b used.So there's a directory with files
that are copied to the local machine, the network is subdivided so it
would be a pain to enter them manually one by one. The section of the
script that does the job for the printer info is something like this

######################################################
        echo "====Enter the name of the printer to be installed:==== "
        read printerName
        echo "<Printer "$printerName">" | sudo tee -a /etc/cups/printers.conf
        echo "Info "$printerName | sudo tee -a /etc/cups/printers.conf
        echo "DeviceURI lpd://10.0.0.3/"$printerName | sudo tee -a 
/etc/cups/printers.conf
        echo "State Idle" | sudo tee -a /etc/cups/printers.conf
        echo "StateTime 1197963058" | sudo tee -a /etc/cups/printers.conf
        echo "Accepting Yes" | sudo tee -a /etc/cups/printers.conf
        echo "Shared Yes" | sudo tee -a /etc/cups/printers.conf
        echo "JobSheets none none" | sudo tee -a /etc/cups/printers.conf
        echo "QuotaPeriod 0" | sudo tee -a /etc/cups/printers.conf
        echo "PageLimit 0" | sudo tee -a /etc/cups/printers.conf
        echo "KLimit 0" | sudo tee -a /etc/cups/printers.conf
        echo "OpPolicy default" | sudo tee -a /etc/cups/printers.conf
        echo "ErrorPolicy stop-printer" | sudo tee -a /etc/cups/printers.conf
        echo "</Printer>" | sudo tee -a /etc/cups/printers.conf
        echo "============================================="
        sudo cp /mnt/printer /usr/local/bin/.
        sudo cp /mnt/changes /usr/local/bin/.
        sudo chmod -R 700 /usr/local/bin/
        echo "============================================="
        echo "#!/bin/sh -e" | sudo tee -a /etc/rc.local
        echo "/usr/local/bin/printer" | sudo tee -a /etc/rc.local
        echo "/usr/local/bin/changes" | sudo tee -a /etc/rc.local
        echo "exit 0" | sudo tee -a /etc/rc.local
        echo "============================================="

###################################################################

However this never happened with Ubuntu Hardy, this started once the
switch to Lucid was made.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/627287

Title:
  Rewrites /etc/cups/printers.conf every night

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to