Skip to content

sudo is needed for ifconfig on ubuntu#134

Open
X-dark wants to merge 1 commit intoJuniper:masterfrom
X-dark:master
Open

sudo is needed for ifconfig on ubuntu#134
X-dark wants to merge 1 commit intoJuniper:masterfrom
X-dark:master

Conversation

@X-dark
Copy link
Copy Markdown

@X-dark X-dark commented Aug 9, 2016

ifconfig is in sbin which is not in the path for lambda users.

function check_dev()
{
interface=$1
arr=$(ifconfig | awk '{print $1}')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? I don't see any issue with running ifconfig as non-root user.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/sbin was not in ubuntu user PATH when I opened this PR. It is now on /etc/environment in the install I have access to. However I do not know if something has modified this file on this system and I do not have access to a vanilla install.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true. The install Guides should add the export PATH=${PATH}:/sbin as a recommendation for the user's environment (typically "stack")

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

Successfully merging this pull request may close these issues.

3 participants