Project

General

Profile

Actions

Bug #53572

closed

cephadm should not require running as root for --help

Added by John Mulligan over 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[ceph@ceph0 ~]$ cephadm --help
ERROR: cephadm should be run as root
[ceph@ceph0 ~]$ cephadm bootstrap --help
ERROR: cephadm should be run as root

Running `sudo cephadm --help` & `sudo cephadm bootstrap --help` prints help text.

The options should probably be parsed before the check to verify if the process is root. This way a user executing cephadm commands can get use --help as a quick reference for options prior to running the real command as root (with sudo, etc).

Actions

Also available in: Atom PDF