Why can't /etc/gdm/PostSession/Default su to $USER

asked 2014-03-12 04:30:33 -0500

Peter Scott gravatar image

updated 2014-03-13 09:35:54 -0500

mether gravatar image

Here is my Fedora 20 /etc/gdm/PostSession/Default:

#!/bin/sh

if [ -f $HOME/.bash_logout ]
then su $USER -c "RUNNING_UNDER_GDM=true $HOME/.bash_logout"
fi
exit 0

When I add debugging code, I see $USER AND $HOME have been interpreted correctly and I see this message:

Password: su: Permission denied

TIA

edit retag flag offensive close merge delete