Project

General

Profile

Actions

Bug #12422

closed

Using two different remote users on the single host ends up with permissions issues at the second attemt

Added by Ivan Necas over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Fixed in Releases:
Found in Releases:

Description

The problems is the first time the execution starts, /tmp/foreman-proxy-ssh directory is created, restrictring
it to just the first user, while the second user can't access the directory later.

The solution would be probably to store the data in `~/.foreman-proxy-ssh` on the client, instead of
the share `/tmp` directory


Related issues 1 (0 open1 closed)

Has duplicate Foreman Remote Execution - Bug #12439: No proxy output when using non-root ssh userDuplicate11/10/2015Actions
Actions #1

Updated by Stephen Benjamin over 8 years ago

What about using /tmp/foreamn-proxy-<job uuid>? Couldn't you have two jobs running at the same time?

Actions #2

Updated by Stephen Benjamin over 8 years ago

  • Has duplicate Bug #12439: No proxy output when using non-root ssh user added
Actions #3

Updated by Stephen Benjamin over 8 years ago

Also affects it if you want to run a command on the foreamn server.

/tmp/foreman-proxy/server is created by foreman-proxy user, so if you're not using root then you can't write to the /tmp/foreamn-proxy/client directory when executing a command on the foreman host itself.

Actions #4

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Stephen Benjamin
  • Target version set to 92
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/14 added
Actions #5

Updated by Anonymous over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Stephen Benjamin over 8 years ago

  • Target version changed from 92 to 87
  • translation missing: en.field_release set to 107
Actions #7

Updated by Stephen Benjamin over 8 years ago

  • translation missing: en.field_release changed from 107 to 106
Actions

Also available in: Atom PDF