screen-users
[Top][All Lists]
Advanced

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

Re: How can I preserve TMPDIR environment in screen?


From: Mark Diekhans
Subject: Re: How can I preserve TMPDIR environment in screen?
Date: Sun, 16 Jul 2017 21:50:49 +0100

It's not screen, it's the kernel because screen is sgid,
for security reasons

You can have your .emacs reset TMPDIR or have a wrapper script
that does this.

Jean Louis <address@hidden> writes:
> Hello,
> 
> I am using screen in following peculiar manner, down below.
> 
> And I am trying to test it to change the TMPDIR variable.
> 
> $ env SOMETHING=OK TMPDIR=/var/tmp/ screen -l -S emacs -D -m -- emacs
> 
> So that above does not work, the TMPDIR is not preserved. I can then
> test it in Emacs with (getenv "TMPDIR") it is nil.
> 
> But SOMETHING is "OK".
> 
> Can I understand why is screen deleting my TMPDIR? I need it.
> 
> Jean Louis
> 
> 
> #!/bin/execlineb -P
> if { s6-test -d /home/data1/protected/Work }
> s6-setuidgid admin
> backtick -n HOME { homeof admin }
> backtick -n PATH { echo 
> "/home/data1/protected/Programming/perl5/bin:/home/data1/protected/bin:/home/data1/protected/bin/rcd:/home/data1/protected/.local/bin:/home/data1/protected/bin:/home/data1/protected/perl5/bin:/home/data1/protected/bin:/home/data1/protected/bin/rcd:/home/data1/protected/.local/bin:/usr/local/bin:/bin:/usr/bin:/opt/texlive/2015/bin/x86_64-linux:/opt/jdk/bin:/opt/qt4/bin:/opt/qt5/bin:/usr/libexec:/opt/rakudo-star-2016.07/bin:/opt/rakudo-star-2016.07/share/perl6/site/bin:/home/data1/protected/Programming/git/fgallery:/usr/libexec:/opt/rakudo-star-2016.07/bin:/opt/rakudo-star-2016.07/share/perl6/site/bin:/home/data1/protected/Programming/git/fgallery"
>  }
> backtick -n MAILDIR { echo "/home/data1/protected/Maildir" }
> backtick -n LC_ALL { echo "en_US.UTF-8" }
> backtick -n TMPDIR { echo "/home/data1/protected/tmp" }
> /usr/bin/screen -l -S emacs -D -m --
> /usr/bin/emacs --user admin --chdir /home/data1/protected
> 
> _______________________________________________
> screen-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]