From: Gorjanc G. <Gre...@bf...> - 2008-10-08 16:33:50
|
... >>> As we can see from the log, the model file cannot be opened. This is >>> because the directory RtmpmMFxxp has the restrictive permissions 700. >>> This naming convention looks like R created this directory. If so, >>> then can we have R make the permissions 755? If not, then maybe we >>> should be using C:\windows\temp since it has the right permissions >>> to begin with. >>> >> >> Are you sure about this? If you use working.directory="." then model file should be written in >> current working directory and not in the temporary folder created by R. >> >> I looked in ?tempdir() and there is no sign that we could modify permissions. I did not check the >> permissions on linux, but I find it odd that 700 does not allow WinBUGS to open the file. Afterall, >> 700 should mean that all permissions are granted to the user (owner) of the file, which is the user >> who started R and subsequently WinBUGS via wine. > > I'm sure. Actually, it does not mean that. It means, another process > with your user id AND group id can access those files. But, the group > id of the Wine processes and children is different. Therefore, it > cannot access those files. That's why nobody uses 700 (except for > something like ~/.ssh), but 755 and 750 are quite common. So, it's > a bug. Then this seems to be Mac specific, since I tested the new behaviour with tempdir() on linux, before I committed last changes. It worked without permission problems on linux. I checked and yes, tempdir() creates a directory with 700 permissions. gg |