Project

General

Profile

Bug #716

Init script for rpm starts as foreman-proxy user, but that user has no write permission

Added by Jeff Weiss over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Packaging
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

[root@jweiss-foreman-1 smart-proxy]# service foreman-proxy start
Starting foreman-proxy: WARNING: Missing SSL setup, working in clear text mode !

/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /usr/share/foreman-proxy/bin/../tmp (Errno::EACCES)
from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
from /usr/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
from /usr/lib/ruby/1.8/fileutils.rb:201:in `each'
from /usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
from /usr/share/foreman-proxy/bin/../lib/sinatra-patch.rb:15:in `run!'
from /usr/share/foreman-proxy/bin/smart-proxy:102
[FAILED]
[root@jweiss-foreman-1 smart-proxy]# rpm -q foreman-proxy
foreman-proxy-0.1-rc1.noarch


I think the fix might be to have it run as root (change the default FOREMAN_PROXY_USER to root in /etc/sysconfig/foreman-proxy). Alternative is that the rpm should create the foreman-proxy user with a HOME dir he can write to. Currently that is /usr/share/foreman-proxy and it is owned by root.

Associated revisions

Revision abb24da4 (diff)
Added by Lukas Zapletal over 9 years ago

fixes #716 - spec file - no write permission to tmp dir

History

#1 Updated by Ohad Levy over 9 years ago

  • Assignee set to Lukas Zapletal
  • Target version set to 0.1

#2 Updated by Lukas Zapletal over 9 years ago

  • Status changed from New to Feedback

#3 Updated by Anonymous over 9 years ago

  • Status changed from Feedback to Ready For Testing
  • % Done changed from 0 to 100

#4 Updated by Ohad Levy over 9 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF