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

Fix running as a restricted user #35

Merged
merged 1 commit into from
Jun 6, 2018
Merged

Conversation

zboszor
Copy link
Contributor

@zboszor zboszor commented Jun 5, 2018

ifconfig and ip commands are traditionally in /sbin on UNIX,
even OSX complies to this.

Unfortunately, only root and other administrator users have
/sbin in their PATH and the getmac module fails of NodeJs is
running as a restricted user.

Execute ifconfig and ip commands using their full paths.

Signed-off-by: Böszörményi Zoltán zboszor@pr.hu

ifconfig and ip commands are traditionally in /sbin on UNIX,
even OSX complies to this.

Unfortunately, only root and other administrator users have
/sbin in their PATH and the getmac module fails of NodeJs is
running as a restricted user.

Execute ifconfig and ip commands using their full paths.

Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
@balupton balupton merged commit 69fcd16 into bevry:master Jun 6, 2018
@balupton
Copy link
Member

balupton commented Jun 6, 2018

published to 1.4.2

@mikeumus mikeumus added the enhancement Improvement or suggestion label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement or suggestion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants