Bug #13439

authorized_files is created at the user directory but owner is root

Added by Daniel Lobato Garcia over 1 year ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:Foreman
Target version:Foreman - Team Daniel - Iteration 9
Difficulty: Pull request:https://github.com/theforeman/foreman/pull/3167, https://github.com/theforeman/foreman_remote_execution/pull/151
Bugzilla link:
Story points-
Velocity based estimate-

Description

As noticed by ewoud on https://github.com/theforeman/community-templates/pull/233 , during provision the authorized_keys file is created under the 'ssh_user' directory but the user may not be able to read or write it after that, since it was created by root.
Fix is simple, just chown the directory and file as 'ssh_user'.

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Daniel Lobato Garcia
  • Target version set to Iteration 6
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/141 added

#2 Updated by Ivan Necas about 1 year ago

  • Target version changed from Iteration 6 to Iteration 7

#3 Updated by Ivan Necas 3 months ago

  • Status changed from Ready For Testing to Closed
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/151, https://github.com/theforeman/foreman/pull/3167 added

Fixed in foreman templates, where the code was moved to

#4 Updated by Daniel Lobato Garcia 3 months ago

  • Target version changed from Iteration 7 to Team Daniel - Iteration 9

Also available in: Atom PDF