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

Re: X-Window/XTerm and environement variables



Michelle Konzack wrote:
> Because I am working in a secured environement, XTerm break it,
> while droping the TEMPDIR variable which was set from /etc/profile,
> ~/.bash_login or ~/.xsession.
> 
> Generaly it is set using:
> 
>     mkdir -p      /tmp/$USER
>     chmod 700     /tmp/$USER
>     export TMPDIR=/tmp/$USER

Could you try another terminal emulator? Xterm is setgid to the utmp
group:

-rwxr-sr-x 1 root utmp 288K 2006-03-17 01:19 /usr/bin/xterm

This causes glibc to purge 'harmful' environment variables from its
environment when it is run, including TMPDIR.

If you must use xterm you could use dpkg-statoverride to remove its
setgid permission; that way the utmp file won't be updated when xterm is
run (so xterms won't appear in the output of w(1)) but at least you
won't lose the TMPDIR environment variable.

> Then the Variable MANPATH is eaten by X-Window.  We are using
> heavyly private manpages from ~/man and using in the configs
> 
>     if test -z "$MANPATH" ; then export MANPATH=`manpath` ; fi
> 
> Under Woody it was working, but now under Sarge, I can not more read
> my private Manpages using xman.

Where is that code for setting MANPATH located, and how are you starting
the X server?

-- 
Sam Morris
http://robots.org.uk/

PGP key id 5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078





Reply to: