Statalist


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

re: st: AW: estout "could not open file"


From   Kit Baum <[email protected]>
To   [email protected]
Subject   re: st: AW: estout "could not open file"
Date   Wed, 10 Feb 2010 13:41:15 -0500

<>
Eric said

Though this solution is Windows based, you could change the shell "attrib" command 
to something like:

      !chmod a+w  "/user/username/filenamehere.txt"

Note that on *nix systems (incl Mac OS X) you must not only be able to write the file (for which you need w permission on the file); you also need rwx permission on the enclosing directory. The 'execute' (x) permission is needed to create a directory listing, without which the OS cannot modify the file, even if the file itself is w:rwx (everyone can do everything).

You don't really need Disk Utility to check (or change) permissions in Mac OS X; within Stata, you could

. !ls -ld /users/baum/documents/stata

which would show you the current permissions on that particular directory (which you may well not have; it is an arbitrary name).

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index