question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add sudo tool to ease blog instruction

See original GitHub issue

Several blogs are now referencing PWD as the de-facto playground for running instructions. However, to make these instructions transposable to user machines, one have to specify two flavors of commands if running on PWD or locally when it comes to sudo commands, as the command is not installed on PWD instances.

e.g.:

run locally:

curl -sSL https://cli.openfaas.com | sudo sh

or on PWD:

curl -sSL https://cli.openfaas.com | sh

Can you add the sudo command to the default packages installed? apk add sudo --no-cache

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jonocodescommented, Oct 25, 2017

I know its hacky, but what if there was a dummy sudo script that when executed as root just passed the commands along. Then they would not into this problem. Or it can be defined as an alias for the root user only.

0reactions
marcosnilscommented, Nov 8, 2017

Yes, forgot to update the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Edit the Sudoers File | DigitalOcean
The sudo command is useful for executing commands with privileges usually outside of the scope of your user. This guide will discuss how...
Read more >
Linux Sudo Command, How to Use With Examples
sudo is a powerful command in Linux that enables users to run commands with elevated privileges. Learn how to use this command with ......
Read more >
30.4. Adding sudo Commands, Command Groups, and Rules
Adding sudo Rules in the Web UI · Under the Policy tab, click Sudo → Sudo Rules. · Click Add at the top...
Read more >
Sudoers Manual | Sudo
The sudoers policy plugin determines a user's sudo privileges. It is the default sudo policy plugin. The policy is driven by the /etc/sudoers...
Read more >
Using sudo to allow non-root users to perform root ... - SUSE
sudo (superuser do) allows you to configure non-root users to run root level commands without being root. Access can be given by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found