DrAmor's Blog

The boring stories written by Juanjo Amor

Return to my $HOME  

Sunday, December 12, 2004

Today's Stupid Trick (on Ubuntu)

On Ubuntu Linux, the CUPs administrator comes with administration capabilities disabled. This issue should not be a problem, by using GNOME CUPS manager. However, this tool does not permit to specify a symbolic name of printer during creation. And for CUPS, symbolic names can not be changed later.

So, the problem is when creating a printer, system assigns automatically a name based on printer model. For example, if your printer is a kind of Apple LaserWriter, name of printer could be "LaserWriter-IInt".

When your organisation has several printers, you cannot refer them with their symbolic name ("Pete") or location ("second floor", "Pete's Room") instead of printer model. So, you must remember models of all printers of your interest...

This issue justifies a bug on Ubuntu, however this bug has been marked as "upstream" and transferred to Gnome maintainers. So, we cannot expect a fix on your favourite distro soon...

Ok, let's see the "Today's Stupid Trick": you only need to enable administration tasks on CUPS administrator. First, add cupsys user to shadow group: type as root «adduser cupsys shadow».

Then, remove and create again all your printers, but now using the admin page. Put on your printers the name you wish. Finally, remove cupsys from shadow access group by typing as root «deluser cupsys shadow».

Other admin tasks can be done without limitations using GNOME CUPS manager, so you don't need to maintain cupsys access to group shadow (which may be a security hole).


At 9:01 PM, Anonymous Anonymous said...

But what if I want to use this on a regular basis? Is it safe to have cupsys in the shadow group? Why is this disabled as default? Is the web interface really that insecure?

At 6:13 AM, Anonymous Anonymous said...

welcome to the wow power leveling cheap service site, buy wow power leveling cheap wow gold,wow gold,world of warcraft power leveling buy wow gold


Post a Comment

<< Home