Project

General

Profile

Actions

Bug #16298

closed

Installer returns traceback when run as non-privileged user

Added by Stephen Benjamin over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1084574
Description of problem:
When a non-root/privileged user tries to run katello-installer, a stack is thrown. This should probably be cleaned up just slightly to inform user that they must have administrative rights.

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140403.0

How reproducible:

Steps to Reproduce:
1. create a non-root user and su <user>
2. katello-installer --help
3. view results

Actual results:
/usr/lib/ruby/1.8/fileutils.rb:1036:in `utime': Permission denied - /etc/katello-installer/katello_installer.yaml (Errno::EACCES)
from /usr/lib/ruby/1.8/fileutils.rb:1036:in `touch'
from /usr/lib/ruby/1.8/fileutils.rb:1033:in `each'
from /usr/lib/ruby/1.8/fileutils.rb:1033:in `touch'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/configuration.rb:46:in `save_configuration'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/configuration.rb:53:in `configure_application'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/configuration.rb:30:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/kafo_configure.rb:34:in `new'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/kafo_configure.rb:34:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `new'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/kafo_configure.rb:98:in `run'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/kafo_configure.rb:97:in `catch'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.16/lib/kafo/kafo_configure.rb:97:in `run'
from /usr/sbin/katello-installer:8

Expected results:

Something informing that this must be run as a root/admin user

Additional info:
Note that providing --help access is not recommended for non-root users since secret keys are displayed in help... and we're fine here. Would just like to clean up output a bit. Minor bz.

Actions #1

Updated by Stephen Benjamin over 7 years ago

  • Project changed from Foreman to Kafo
  • Subject changed from Installer returns traceback when run as non-privileged user to Installer returns traceback when run as non-privileged user
Actions #2

Updated by Bryan Kearney over 7 years ago

  • Project changed from Kafo to Installer
Actions #3

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-installer/pull/212 added
Actions #4

Updated by Bryan Kearney about 7 years ago

  • Project changed from Installer to Kafo
Actions #5

Updated by The Foreman Bot about 7 years ago

  • Pull request https://github.com/theforeman/kafo/pull/205 added
Actions #6

Updated by Marek Hulán about 7 years ago

  • Pull request deleted (https://github.com/theforeman/foreman-installer/pull/212)
Actions #7

Updated by Bryan Kearney about 7 years ago

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

Updated by The Foreman Bot about 7 years ago

  • Pull request https://github.com/theforeman/kafo/pull/208 added
Actions

Also available in: Atom PDF