Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-32727

lpoptions with root writes to ~/.cups/lpoptions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.3.0.z
    • cups
    • None
    • cups-2.3.3op2-26.el9
    • None
    • Moderate
    • sst_cs_infra_services
    • ssg_core_services
    • 14
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      with lpoption command, options are written to  ~/.cups/lpinfo instead of /etc/cups/lpoption

      Please provide the package NVR for which bug is seen:

      cups-2.3.3-op2-21.el9

      How reproducible:

      Always

      Steps to reproduce

      1.  Add a printer 
        # lpadmin -p test -E -v file:/dev/null
      1. Use lpoption:
      # lpoptions -d test 

      Expected results:

      As per manpage

       When  run by the root user, lpoptions gets and sets default options and
             instances for all users in the  /etc/cups/lpoptions  file.   Otherwise,
             the per-user defaults are managed in the ~/.cups/lpoptions file. 

      Actual results

      • Options written to /root/.cups/lpoptions instead of /etc/cups/printer

            zdohnal@redhat.com Zdenek Dohnal
            rhn-support-smahanga Shreyas Mahangade
            Zdenek Dohnal Zdenek Dohnal
            Petr Dancak Petr Dancak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: