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

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