Skip to content

Allow Popeye to be used by more than one user on a host (/tmp/popeye.log permission problem) #301

@jim-barber-he

Description

@jim-barber-he




Is your feature request related to a problem? Please describe.

I manage multiple clusters, and on my system I sudo to different user IDs to manage them.
If I run popeye as one user, it creates a /tmp/popeye.log owned by the user.
If I then try to run popeye as another user it errors like so:

$ popeye version     
Unable to create Popeye log file open /tmp/popeye.log: permission denied. Exiting...

It would be good to be able to have popeye work around this limitation.

Describe the solution you'd like

To be able to run popeye as one user, then be able to run it as another user without the original user (or root) having to remove the /tmp/popeye.log file first.

Describe alternatives you've considered

As for implementation there are so many valid ways you can tackle this, that it would be up you.
E.g.

  • Create a /tmp/popeye-$UID.log file instead.
  • Create a /tmp/popeye-$PID.log file instead.
  • Keep creating /tmp/popeye.log and if it can't be written to fall back on one of the options above.
  • Keep creating /tmp/popeye.log and if it can't be written to proceed with a warning (configurable to be turned off) and don't produce a log file at all.
  • Provide an option to not create a popeye.log file at all (configurable via an environment variable would be nice)
  • Create a /tmp/$UID/popeye.log instead.
    And so on.

Additional context
Add any other context or screenshots about the feature request here.

Hopefully the above captures my request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions