p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

8 lines
177 B

#!/bin/bash
if [[ $EUID > 0 ]]
then echo "This script must be run with sudo."
exit
fi
mkdir -p /run/user/$(id -u $SUDO_USER)
chown $SUDO_USER /run/user/$(id -u $SUDO_USER)