source: trunk/debathena/debathena/xsession/debian/97debathena-homedir-mode @ 23063

Revision 23063, 500 bytes checked in by ghudson, 16 years ago (diff)
In xsession: * Add warning dialog for mode 777 AFS homedirs. * Fix dotfile conflict header.
RevLine 
[23063]1# This file is sourced by Xsession(5), not executed.
2
3if [ afs = "$DEBATHENA_HOME_TYPE" ] && \
4  stat -L --format='%A' "$HOME" | egrep -q '^(.....w|........w)'; then
5  hm=$(stat -L --format='%a' "$HOME")
6  message "Your home directory is mode $hm, probably because it was created" \
7    "a long time ago.  You likely received a spurious error dialog about" \
8    ".dmrc as a result of the mode bits on your home directory.  To fix this" \
9    "condition, you can run: chmod 755 \$HOME"
10  unset hm
11fi
Note: See TracBrowser for help on using the repository browser.