Re: a2ps: Printer "display" not working

From: Almut Behrens (almut_behrens_at_gmx.net)
Date: 06/16/05

  • Next message: Alphan Bayazit: "Re: ISO File Content:"
    Date: Thu, 16 Jun 2005 23:22:35 +0200
    To: debian-user@lists.debian.org
    
    

    On Wed, Jun 15, 2005 at 11:56:18AM +0200, Heinrich Rebehn wrote:
    >
    > "a2ps -P display .bashrc" yields:
    >
    > [.bashrc (plain): 2 pages on 2 sheets]
    > sh: line 1: /tmp/a2_HSzrDm: Permission denied
    > [Total: 2 pages on 2 sheets] sent to the printer `display'
    > [2 lines wrapped]
    >
    > Using strace i found:
    >
    > [pid 8415] open("/tmp/a2_N4Fh2p", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,
    > 0666) = 3
    >
    > and a bit later:
    >
    > [pid 8416] execve("/tmp/a2_N4Fh2p", ["/tmp/a2_N4Fh2p"], [/* 25 vars
    > */]) = -1 EACCES (Permission denied)

    Just an idea: maybe you have a seperate partition for /tmp, which is
    mounted "noexec" (as a security measure). If so, you might want to try
    remounting it "exec" temporarily

    # mount -o remount,exec /tmp

    If that should solve the problem with a2ps, you could try to

    * file a bug report

    * set TMPDIR to some other directory where you have execute permission
    before you run a2ps. -- Not sure what technique a2ps uses to create
    tempfiles (there are quite a few...) -- at least some of them honor the
    setting of the environment variable TMPDIR...

    * have /tmp be mounted executable, permanently (in fstab)

    Good luck,
    Almut

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Alphan Bayazit: "Re: ISO File Content:"