Penguin
Diff: PerUserTempDirs
EditPageHistoryDiffInfoLikePages

Differences between version 3 and predecessor to the previous major change of PerUserTempDirs.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Tuesday, November 16, 2004 10:24:24 am by StuartYeates Revert
Older page: version 1 Last edited on Tuesday, November 16, 2004 10:20:12 am by PerryLorier Revert
@@ -2,9 +2,9 @@
  
 The first part of the script goes in .bash_profile: 
  # Set up each users own temp directory (kinda) 
  mkdir /tmp/$USER 2>/dev/null 
- if [ -O /tmp/$USER ]; then 
+ if [ [ -O /tmp/$USER ]; then 
  TMPDIR=/tmp/$USER 
  else 
  TMPDIR=$(mktemp -d /tmp/${USER}.XXXXXX) 
  fi 
@@ -22,4 +22,9 @@
  
 This means that it will remove the directory when the last shell is closed and there are no more files in the directory. 
  
 If users want scratch space to copy files between users etc, they can use /tmp directly as [LFS] suggests, however conformant programs should use /tmp/''username'' or /tmp/''username''.''uniqueid''. 
+  
+Ideally Linux could transparently produce a unique /tmp/ for each $USER on the system, but that would break LinuxStandardsBase compiliance and many applications.  
+  
+----  
+CategorySecurity