Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root privileges required to verify the binary version? #160

Closed
josegomezr opened this issue Dec 6, 2022 · 2 comments
Closed

Root privileges required to verify the binary version? #160

josegomezr opened this issue Dec 6, 2022 · 2 comments
Assignees

Comments

@josegomezr
Copy link
Contributor

connect-ng requires root permissions to print the version information:

Environment:

πŸ“…2022-12-06πŸ•™11:47:47 ➜ cat /etc/*release
NAME="openSUSE Leap"
VERSION="15.4"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.4"
PRETTY_NAME="openSUSE Leap 15.4"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.4"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

πŸ“…2022-12-06πŸ•™11:48:14 ➜ zypper info suseconnect-ng
Loading repository data...
Reading installed packages...


Information for package suseconnect-ng:
---------------------------------------
Repository     : Main Repository
Name           : suseconnect-ng
Version        : 0.0.8~git0.16545bf-150400.1.10
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/>
Installed Size : 10.0 MiB
Installed      : Yes
Status         : up-to-date
Source package : suseconnect-ng-0.0.8~git0.16545bf-150400.1.10.src
Upstream URL   : https://github.com/SUSE/connect-ng
Summary        : Utility to register a system with the SUSE Customer Center
Description    : 
    This package provides a command line tool for connecting a
    client system to the SUSE Customer Center. It will connect the system to your
    product subscriptions and enable the product repositories/services locally.
    suseconnect-ng reduces the size of its runtime dependencies compared to the
    replaced SUSEConnect.


πŸ“…2022-12-06πŸ•™11:48:23 ➜ suseconnect --version
Root privileges are required to register products and change software repositories.

πŸ“…2022-12-06πŸ•™11:48:27 βœ— sudo suseconnect --version
0.0.8

Expected Result

I run as an unprivileged user suseconnect --version and I see the version.

@djoreilly
Copy link
Collaborator

Thanks for the report.

@djoreilly djoreilly self-assigned this Dec 6, 2022
djoreilly added a commit to djoreilly/connect-ng that referenced this issue Dec 6, 2022
@djoreilly
Copy link
Collaborator

fixed inhttps://github.com//pull/161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants