mirror of https://github.com/microsoft/WSL
networking.sh - should run as root. (#7329)
If networking.sh is run by a non-root user, "ping: socket: Operation not permitted" may result. This adds a test & warning.
This commit is contained in:
parent
1d1e21dc10
commit
9600e253bd
|
|
@ -1,4 +1,9 @@
|
|||
#! /bin/bash
|
||||
if (($(id -u) != 0))
|
||||
then
|
||||
printf "If you see 'ping: socket: Operation not permitted' errors, "
|
||||
printf "run this command as root.\n"
|
||||
fi
|
||||
|
||||
set -xu
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue