在我的本地Arch linux框中,获取本地IP地址,迫使我获得root shell或使用su -c
,而sudo
超时。任何人都可以解释原因吗?
$ sudo ip address show
;; connection timed out; no servers could be reached
而su -c
有效:
$ su -c "ip address show"
Password:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00