[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .xsession in xdm session



>-Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br>
>
>         Hi all,
>         I installed a Debian Linux Sun Port in a Sparc 4 here at school, but
> some people have a .xsession file that is not executable because they use
> Solaris and some program set this file. But they cant log in xdm because xdm
> found the .xsession file but cant execute it.
>         The question is what is the better solution to this problem?
>         chmod +x ~accounts/.xsession
>         or in some /etc/X11/* file put: sh .xsession

I'd say change a part of /etc/X11/Xsession from

if [ -x $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
  exec $startup
fi

to

if [ -f $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
	if [ -x $startup ]
	then
		exec $startup
	else
		exec /bin/sh $startup
	fi
fi

-- 
MS-DOS: Micro$oft Denial Of Service. The most popular denial of
service attack. It is commonly disguised as an operating system.
The easiest fix is to install a freenix.


Reply to: