0

How do I move (settings/syntax) the user's Temp Folder to a new location inside their Home Folder?

1
  • I don't know of any standard directory for temporary files inside user directories. There's $XDG_CACHE_HOME (defaults to ~/.cache) and $XDG_RUNTIME_DIR (which has no default), neither of which really fit the definition of "temporary files". What exactly do you mean? Feb 7, 2015 at 0:10

1 Answer 1

1

To do this, you need to set the $TMP environment variable. This can be done per-user or globally. More information is available here. What you need to do is add

TMP=${HOME}/tmp

to the appropriate file (e.g. ~/.pam_environment to set it for one user) where tmp is the dir inside the user(s)' home directory you want to use for temp files.

Changes take effect the next time the user logs in.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .