Running the curl registration command using sudo as a general user fails.
Issue
Running the curl registration command using sudo as a general user fails.
subscription-manager command is successful.
[test@el8 ~]$ sudo curl -sS 'https://satellite.fqdn/register?activation_keys=test-key&location_id=2&organization_id=1&update_packages=false' -H 'Authorization: Bearer **********************' | bash
Please run as root
[test@el8 ~]$ sudo subscription-manager register --org="Default_Organization" --activationkey="test-key" --force
Unregistering from: satellite.fqdn:443/rhsm
The system with UUID *************** has been unregistered
All local data removed
The system has been registered with ID: ***************
The registered system name is: el8
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Environment
Red Hat Satellite 6.14
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.