WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Permission problems with CUPS
« on: March 30, 2016, 11:33:41 AM »
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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14554
Re: Permission problems with CUPS
« Reply #1 on: March 30, 2016, 10:44:23 PM »
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, 06:59:50 AM »
Ok I will try thanks.
Did you set the ownership to root?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14554
Re: Permission problems with CUPS
« Reply #3 on: April 01, 2016, 10:41:41 PM »
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, 10:51:30 AM »
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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14554
Re: Permission problems with CUPS
« Reply #5 on: April 04, 2016, 10:40:59 PM »
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, 12:20:08 PM »
Sorry but I'm using cups-filter and I don't see foomatic-rip anywhere? Am I blind!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14554
Re: Permission problems with CUPS
« Reply #7 on: April 06, 2016, 09:32:24 PM »
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 06, 2016, 11:39:50 PM by Juanito »

Offline mbertrand

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

Offline Juanito

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