如何使用nologin用户执行命令

nologin 用户执行命令 [root@node1 ~]# ls -al /tmp/qemu-user-test ls: cannot access ‘/tmp/qemu-user-test’: No such file or directory [root@node1 ~]# su -s /bin/bash -c ‘echo “i am nologin user.” > /tmp/qemu-user-test’ qemu [root@node1 ~]# ls -al /tmp/qemu-user-test -rw-r–r– 1 qemu qemu 19 Jan 31 11:29 /tmp/qemu-user-test [root@node1 ~]# cat /tmp/qemu-user-test i am nologin user.

Published
Categorized as linux

检查ip冲突的方法

使用arping检查ip冲突. [root@node1 ~]# arping -I enp4s0f0 192.168.11.3 ARPING 192.168.11.3 from 192.168.12.196 enp4s0f0 Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.683ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.551ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.562ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.548ms 如果返回的mac 地址有多个, 说明这个局域网出现ip冲突.