WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Permission problems with CUPS  (Read 3103 times)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Permission problems with CUPS
« on: March 30, 2016, 02:33:41 PM »
I have CUPS 1.6.2 extension running  but it keep complaining about permissions. For example "foomatic-rip has insecure permissions".

You can't change permissions because it is mounted read only. What to do?
/tmp/tcloop/foomatic-rip/usr/local/lib/cups/filter/foomatic-rip

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Permission problems with CUPS
« Reply #1 on: March 31, 2016, 01:44:23 AM »
the foomatic-rip filter is in the cups-filters extension - you could try using that instead of the foomatic-rip extension?

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Permission problems with CUPS
« Reply #2 on: April 01, 2016, 09:59:50 AM »
Ok I will try thanks.
Did you set the ownership to root?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Permission problems with CUPS
« Reply #3 on: April 02, 2016, 01:41:41 AM »
The ownership is set to whatever "sudo make install" sets it to  :)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Permission problems with CUPS
« Reply #4 on: April 04, 2016, 01:51:30 PM »
Ok I got my printer to work but if I use the cups-filter like you suggested because you say that foomatic-rip is part of but it I have error saying that it can't find foomatic-rip and I don't see it in the list of files.  I can use the foomatic-rip package instead but I have to un squash it and chown the filters to root:root and then re sqash or else I get error that permissions are not good enough.
Is there a reason why the filters in foomatic-rip are user tc and group staff because I think they should be user root and group root?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Permission problems with CUPS
« Reply #5 on: April 05, 2016, 01:40:59 AM »
I don't know why the permissions in the foomatic-rip extension are as they are.

I see /usr/local/lib/cups/filter/foomatic-rip is a symlink to /usr/local/bin/foomatic-rip in the foomatic-rip extension - in the cups-filters extension /usr/local/lib/cups/filter/foomatic-rip exists, but not /usr/local/bin/foomatic-rip.

Maybe you could try adding a symlink from /usr/local/bin to /usr/local/lib/cups/filter/foomatic-rip with the cups-filters extension and see if that works?

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Permission problems with CUPS
« Reply #6 on: April 06, 2016, 03:20:08 PM »
Sorry but I'm using cups-filter and I don't see foomatic-rip anywhere? Am I blind!

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Permission problems with CUPS
« Reply #7 on: April 07, 2016, 12:32:24 AM »
Assuming that you're using v7.0 x86, the file is /usr/local/lib/cups/filter/foomatic-rip

My suggestion is to try:
Code: [Select]
$ sudo ln -s /usr/local/lib/cups/filter/foomatic-rip /usr/local/bin/foomatic-rip
..and see if that works.
« Last Edit: April 07, 2016, 02:39:50 AM by Juanito »

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Permission problems with CUPS
« Reply #8 on: April 07, 2016, 09:52:07 AM »
No! Looks like we are still using 5.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Permission problems with CUPS
« Reply #9 on: April 07, 2016, 12:40:54 PM »
Ah - well you could unsquash the extension, copy it somewhere, fix the permissions, squash it up again and keep it as a local extension?