home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.92 / text0141.txt < prev    next >
Encoding:
Text File  |  1996-04-02  |  2.3 KB  |  54 lines

  1. FileMaker and a few other programs (Finale comes to mind) want to  
  2. write scratch files at the top of the "volume" that they're found on.   
  3. If you run them on a Mac, and you have a hard drive named "Disk", and  
  4. you have FileMaker in a subdirectory named "FileMaker", the scratch  
  5. files get written in "Disk" and not "FileMaker".
  6.  
  7. With our UNIX <--> Mac mapping this results in programs trying to  
  8. write directly into the UNIX directory "/" or "/usr" instead of  
  9. "/LocalApps/Executor.app/ExecutorVolume/FileMaker".
  10.  
  11. One way to diagnose such problems is to run the program once as root  
  12. and see if it runs better.  If it does, then you need to find exactly  
  13. where the scratch files are being written and then decide what to do  
  14. about it.
  15.  
  16. You have a few choices.  You could always run that particular  
  17. application as root.  Although this is the easiest solution, it's  
  18. probably the worst.  Getting in the habit of running programs in root  
  19. is a bad habit to get into.
  20.  
  21. Once you've figured out what directory you need access to, you may  
  22. want to either change the ownership or the permissions on the  
  23. directory.  BEWARE: If you give people "write" access to a directory,  
  24. that allows the people with "write" access to both CREATE new files  
  25. and to DELETE existing files.  If you want to allow creation, but not  
  26. "deletion", you need to add "sticky" access to the directory.  To  
  27. allow everyone to write new files into "/", but not to delete  
  28. existing files (unless they're the owner), you could issue the  
  29. following commands as root:
  30.  
  31. iclone# ls -ld /
  32. drwxr-xr-x 25 root        1024 Dec 23 00:45 /
  33. iclone# chmod a+w,+t /
  34. iclone# ls -ld /
  35. drwxrwxrwt 25 root        1024 Dec 23 00:45 /
  36.  
  37. The first command shows exactly what permissions "/" currently has,  
  38. the second adds "w"rite to "a" and also adds s"t"icky to the  
  39. directory.  The third command shows that everyone can indeed "w"rite  
  40. to the directory and the "t" in "drwxrwxrwt" shows that the directory  
  41. is indeed s"t"icky.
  42.  
  43. Most programs don't require this goofiness, most programs write  
  44. scratch files either in the "System Folder", or in the directory that  
  45. the program itself resides in.
  46.  
  47. I've spent a bit of time thinking about a way to trick these aberrant  
  48. programs, but haven't figured out anything yet.
  49.  
  50. Happy Holidays.
  51.  
  52.     --Cliff
  53.  
  54.