Incorrect use of sudo in documentation #4805

Closed
opened 2025-12-29 19:20:48 +01:00 by adam · 0 comments
Owner

Originally created by @joonap on GitHub (Apr 22, 2021).

Originally assigned to: @jeremystretch on GitHub.

Change Type

Correction

Area

Installation instructions

Proposed Changes

The installation guide asks to use sudo with a pipe in the following way.

sudo echo napalm >> /opt/netbox/local_requirements.txt

This does not work and will result in an error.

-bash: /opt/netbox/local_requirements.txt: Permission denied

To use a pipe, you could for example leverage 'tee':

echo 'napalm' | sudo tee -a /opt/netbox/local_requirements.txt
Originally created by @joonap on GitHub (Apr 22, 2021). Originally assigned to: @jeremystretch on GitHub. ### Change Type Correction ### Area Installation instructions ### Proposed Changes The installation guide asks to use sudo with a pipe in the following way. sudo echo napalm >> /opt/netbox/local_requirements.txt This does not work and will result in an error. -bash: /opt/netbox/local_requirements.txt: Permission denied To use a pipe, you could for example leverage 'tee': echo 'napalm' | sudo tee -a /opt/netbox/local_requirements.txt
adam added the status: acceptedtype: documentation labels 2025-12-29 19:20:48 +01:00
adam closed this issue 2025-12-29 19:20:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4805