12.10 Lexmark S605 insecure permissions error

13,083

Solution 1

I don't believe /usr/lib/cups/filter//usr/local/lexmark/v3/bin/printfilter is intended as one directory - /usr/lib/cups/filter/ typically has no subdirs.

But apparently you managed to install the desired package and now you're getting the new insecure permissions error. I'm assuming this message gives the directory as /usr/local/lexmark/v3/bin/printfilter below.

What you need to do is change the ownership of /usr/local/lexmark/v3/bin/printfilter:

$ sudo chown -R root /usr/local/lexmark/v3/bin/printfilter

Changing the group shouldn't be neccessary but if you want to be on the safe side, also do

    $ sudo chgrp -R root /usr/local/lexmark/v3/bin/printfilter

However, you do need to have root as the owner of /usr/lib/cups/filter/, if it isn't, do the same for that directory:

$ sudo chown -R root /usr/lib/cups/filter/

...and when you're done with changeing the permissions, do a reboot or:

$ sudo /etc/init.d/cups restart

Solution 2

/usr/lib/cups/filter//usr/local/lexmark/v3/bin/printfilter

This should be 1 directory. The double // is evaluated as 1 / so it does nothing. It is probably to prevent inside the software that this dir is evaluated: /usr/lib/cups/filterusr/local/lexmark/v3/bin/printfilter. That would result in an unwanted error.

Permissions error

sudo chmod 755 /usr/local/lexmark/v3/bin
sudo chgrp root /usr/local/lexmark/v3/bin/printfilter

should do it (though the 2nd line might not be needed!). Probable reason for the error:

CUPS 1.5.0 has a new security policy for filters and backends not allowing group write permissions. See http://www.cups.org/documentation.php/doc-1.5/whatsnew.html

Scheduler

4. Filter security; Filters and backends must now have group
 write permissions disabled.

The package you used to install is probably from before this CUPS update.

Share:
13,083
HES_Xenon
Author by

HES_Xenon

Trying to figure out how ubuntu works, used Windows all my life (still using it) but ubuntu seems to be more... flexible. Open minded. And a hell of a lot more complicated. F*ck. So let's try to become a power-user before my motivation runs out :P

Updated on September 18, 2022

Comments

  • HES_Xenon
    HES_Xenon almost 2 years

    The S605 printer from lexmark is found and there is a provided option for the S600 Series when installing it. However, after the installation process it says it needs the program /usr/lib/cups/filter//usr/local/lexmark/v3/bin/printfilter.

    Now i know, that the downloadable packages from lexmark contain this file in a debian package, so i could use it from there, but: What does the structure above mean? ...//usr/local/...

    Are these two different locations? And has the file to be in both?

    Thanks in advance, it's impressive how you guys actually know what you're doing (in contrary to mac or most windows users.)

    Update: After installinge the packages from lexmark (which are for 12.04) it says at printer state: idle .../printfilter has insecure permissions (0100775/uid=0/gid=0).

    Can i modify the printfilter? Do i need to set up an administrative group? I read a guide somewhere, but didn't follow it for some reason i forgot.

  • nilsonneto
    nilsonneto over 11 years
    Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
  • Braiam
    Braiam over 10 years
    Sorry, but that doesn't mean that it will work in Ubuntu.
  • Benjamin R
    Benjamin R over 5 years
    Thanks for adding some specific implementation details to your "comment" to make it into an answer, that may help someone else in a similar situation.