Lines Matching refs:user
8 # This is a test script for the lxc-user-nic program
28 LXC_USER_NIC="@LIBEXECDIR@/lxc/lxc-user-nic"
37 sed -i '/usernic-user/d' /run/lxc/nics /etc/lxc/lxc-usernet
44 pkill -u $(id -u usernic-user) -9
46 rm -rf /tmp/usernic-test /home/usernic-user /run/user/$(id -u usernic-user)
48 deluser usernic-user
61 sudo -i -u usernic-user \
63 XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) $*
74 # create a test user
75 deluser usernic-user || true
76 useradd usernic-user
77 sudo mkdir -p /home/usernic-user
78 sudo chown usernic-user: /home/usernic-user
79 usermod -v 910000-919999 -w 910000-919999 usernic-user
81 mkdir -p /home/usernic-user/.config/lxc/
82 cat > /home/usernic-user/.config/lxc/default.conf << EOF
89 cgm create all usernic-user
90 cgm chown all usernic-user $(id -u usernic-user) $(id -g usernic-user)
91 cgm movepid all usernic-user $$
96 string:$d string:usernic-user >/dev/null
100 string:$d string:usernic-user int32:$(id -u usernic-user) int32:$(id -g usernic-user) >/dev/null
104 string:$d string:usernic-user int32:$$ >/dev/null
110 chown -R usernic-user: $d/lxctest
115 mkdir -p /run/user/$(id -u usernic-user)
116 chown -R usernic-user: /run/user/$(id -u usernic-user) /home/usernic-user
119 run_cmd "mkdir -p /home/usernic-user/.cache/lxc"
121 cp -R /var/cache/lxc/download /home/usernic-user/.cache/lxc && \
122 chown -R usernic-user: /home/usernic-user/.cache/lxc
152 lxcpath=/home/usernic-user/.local/share/lxc
163 sed -i '/^usernic-user/d' /etc/lxc/lxc-usernet
164 echo "usernic-user veth usernic-br0 2" >> /etc/lxc/lxc-usernet