*** This bug is a duplicate of bug 295318 ***
https://bugs.launchpad.net/bugs/295318
I did as John Stiles instructs in post #18 and worked ok at the first attempt
in my Linux Mint Julia edition (based on Ubuntu Maverick Meerkat).
Thanks a lot to John for this clear and simple workaround.
--
*** This bug is a duplicate of bug 295318 ***
https://bugs.launchpad.net/bugs/295318
SOLVED by the easiest way (Disabling cups apparmor profile)
Run these commands ...
mkdir $HOME/PDF
mkdir $HOME/PDF
sudo mv /etc/apparmor.d/usr.sbin.cupsd /etc/apparmor.d/disable/.
sudo /etc/init.d/apparmor
*** This bug is a duplicate of bug 295318 ***
https://bugs.launchpad.net/bugs/295318
I had nearly same problem in karmic. I already had the PDF directory in
my $HOME. Before updating to karmic, this worked normal.
Since karmic, I couldn't create PDF, too. I got logs like this.
*** This bug is a duplicate of bug 295318 ***
https://bugs.launchpad.net/bugs/295318
I'm having the same problem in karmic
Happens even when I have already created ~/PDF and tried it with a
number of permissions without success.
Adding capability dac_read_search, to the cups-pdf section of
*** This bug is a duplicate of bug 295318 ***
https://bugs.launchpad.net/bugs/295318
** This bug has been marked a duplicate of bug 295318
cups-pdf requires user to create output folder before working correctly.
--
apparmor prevent cups-pdf to create ~/PDF folder
In Ubuntu 9.04 Jaunty this works:
mkdir ~/PDF ; chmod 701 $HOME ~/PDF
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing
Confirmed. This is an old bug from at least Intrepid, possibly Hardy.
It's still present on Jaunty:
Mon Apr 27 21:07:41 2009 [DEBUG] switching to new gid (lpadmin)
Mon Apr 27 21:07:41 2009 [DEBUG] initialization finished (v2.5.0)
Mon Apr 27 21:07:41 2009 [DEBUG] user identified (ward)
Mon Apr
Bug still present in 9.04 Jaunty even if i manually create the ~/PDF
directory.
Works fine with apparmor disabled.
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is
I have added
capability dac_read_search,
to the cups-pdf section of /etc/apparmor.d/usr.sbin.cupsd and also chmod
700 ~/PDF and $HOME.
capability dac_override,
is already present in the general cupsd section.
Made no difference.
cups-pdf remains unusable.
--
apparmor prevent cups-pdf
The problem seems to be occurring in the prepareuser function of
/usr/lib/cups/backend/cups-pdf. Specifically, the following check fails to
correctly identify the presence of the user output directory (line 338 of
cups-pdf.c):
if (stat(dirname, fstatus) || !S_ISDIR(fstatus.ts_mode))
Using
Adding the line:
capability dac_read_search,
to the cups-pdf section of /etc/apparmor.d/usr.sbin.cupsd allows cups-pdf to
function as expected in cases where ~/PDF/ exists with permissions 700, and
$HOME also has 700 permissions.
This is unusual, as AppArmor should not be interfering with the
Not working here in Jaunty up-to-date.
Same messages:
from /var/log/syslog:
Feb 27 09:34:07 malouce kernel: [ 2911.778762] type=1503
audit(1235723647.524:177): operation=capable name=dac_override pid=9049
profile=/usr/lib/cups/backend/cups-pdf
Feb 27 09:34:07 malouce kernel: [ 2911.778776]
Thanks for all the info and suggestions above, but still not working
cups-pdf printer state Stopped - Backend /usr/lib/cups/backend/cups-pdf
does not exist
I confirm ~/PDF added by me
I also chmod +rwx /usr/lib/cups/backend/cups-pdf to match other backends, so
should exist and now be seen.
AA
Okay now working. So after upgrade to Ibex:
Delete printer in System, Administration, Printer Configuration
Make directory ~/PDF
Reinstall Cups-pdf
Printer added back automatically in System Printer Configuration, now printing
to ~/PDF
note: capability dac_override now added in aa repository,
My Ibex got this problem also. So anyone??? Any update package for this? Or i
have to do manually?
This bug already 4 moth !!!
I cannot imagine if some company using a lot off ubuntu client
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received
Running
sudo aa-logprof
prompts the user with a so many questions which not many would know what is
being requested.
like listed in here
http://beginlinux.com/desktop_training/ubuntu/1108-create-a-profile-in-apparmor
Would you like to enable access to the profile repository?
(E)nable
Running:
sudo aa-logprof
solves the problem, as expected.
Without any further need to disable (or fiddle with) AppArmor.
Also the /var/log/cups/cups-pdf_log log file will be clean again.
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received
Works for me after creating the PDF directory manually.
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
Any update on this? This is a very annoying bug which, for a typical
Linux user, will require to disable or remove AppArmor.
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs,
Unable to use PDF printer.. even if PDF directory exists. :(
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
Using dac_override works although it keeps on failing in /var/log/cups
/cups-pdf_log with:
Mon Nov 3 18:48:50 2008 [ERROR] failed to create directory (/home/user/PDF)
Mon Nov 3 18:48:50 2008 [ERROR] failed to create user output directory
(/home/user/PDF)
Besides, I've also added the
cups-pdf doesn't work out of the box, but as pointed here, using
dac_override make it work again.
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
I can't get it to work even if I create the PDF directory first. cups-
pdf still complains about not being able to create it.
I need to print PDF's from a windows app with wine, and can't think of
another way to do it..
--
apparmor prevent cups-pdf to create ~/PDF folder
Oh, I see. But I don't really want to give DAC_OVERRIDE to cups-pdf,
it's crackful enough as it is, and DAC_OVERRIDE is very powerful. The
actual creation of ~/PDF works just fine for me (/home/martin/PDF), at
least it did in Hardy (we don't install cups-pdf by default any more).
Does it actually
Martin Pitt : This bug does not exist in Hardy, you're right. However,
this bug is always reproducible in intrepid with standard home folders.
~/PDF folder is not automatically created in intrepid, making cups-pdf
unusable for users that won't think to manually create the folder.
--
apparmor
*** This bug is a duplicate of bug 151190 ***
https://bugs.launchpad.net/bugs/151190
Saivann, right, but the apparmor profile lives in the cups package
itself.
Steve, I fixed your cache/cups/help.index thing in bzr trunk. The main
part of this bug report is a dupe of bug 151190.
** Changed
Martin, sorry, but this is different from bug 151190; my home
directories are in the default location. I'm seeing this despite:
[denisovich ~]$ grep HOME /etc/apparmor.d/tunables/home
# @{HOME} is a space-separated list of all user home directories. While
@[EMAIL PROTECTED]/*/ /root/
#
Same here, one needs to create the directory by hand.
Error message in /var/log/cups/cups-pdf_log:
Fri Oct 3 14:44:32 2008 [ERROR] failed to create directory (/home/myuser/PDF)
Fri Oct 3 14:44:32 2008 [ERROR] failed to create user output directory
(/home/myuser/PDF)
Corresponding entry in
** Changed in: cupsys (Ubuntu)
Importance: Undecided = Medium
Status: New = Confirmed
--
apparmor prevent cups-pdf to create ~/PDF folder
https://bugs.launchpad.net/bugs/270046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
The cupsys package got renamed in the Intrepid cycle to cups; editing
the package information on this bug.
Yes, bug 276502 is the same as this; the cups-pdf apparmor profile needs
capability dac_override,
added to it. I had another apparmor rejection on the main cupsd profile
I mentioned in
Steve Beattie : Thanks for your terminal outputs. Are these outputs
related to the document that you tried to print with your PDF printer?
If not, these outputs would get a more appropriate attention if you are
able to reproduce the bug that caused this apparmor profile to refuse
the operation and
31 matches
Mail list logo