Skip to content

Instantly share code, notes, and snippets.

/99-myfile.conf Secret

Created December 4, 2016 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e1a9a7d0a61409073831c7c728d04b98 to your computer and use it in GitHub Desktop.
Save anonymous/e1a9a7d0a61409073831c7c728d04b98 to your computer and use it in GitHub Desktop.
# /etc/lightdm/lightdm.conf.d/99-myfile.conf
# -rwxr-xr-x 1 root root 293 Dec 4 12:49 99-myfile.conf
[Seat:*]
session-cleanup-script=/usr/local/bin/testing-logoff-script2
root@myhost:/# ls -la / | grep test
drwxrwxrwx 2 root root 4096 Dec 4 12:58 test
# /usr/local/bin/testing-logoff-script2
# -rwxr-xr-x 1 root users 219 Dec 4 12:59 testing-logoff-script2
#!/bin/bash
echo "`date`: ---------------- running logoff script ----------------" >> /test/test-logoff-script.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment