mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 04:35:57 -06:00
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…
x
Reference in New Issue
Block a user