15 lines
364 B
Bash
15 lines
364 B
Bash
#!/bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
for user in $(awk -F'[/:]' '{if ($3 == 0 || ($3 >= 1000 && $3 != 65534)) print $1}' /etc/passwd); do
|
|
_uid=$(id -u $user)
|
|
if ! [ -f "/var/run/vmware/${_uid}" ] ; then
|
|
mkdir -p "/var/run/vmware/${_uid}"
|
|
chown -R -- "${user}:" "/var/run/vmware/${_uid}"
|
|
chmod 700 "/var/run/vmware/${_uid}"
|
|
fi
|
|
done
|
|
|
|
exec /usr/bin/vmware-usbarbitrator -f
|