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

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

From   Kit Baum <>
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   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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