Hello everyone,
I've been experiencing a problem with Windows 7 and access to writing files. There is some new type of user access control which prevents writing files. I was wondering if anyone had experienced this and new of a solution under Smalltalk? thanks, David _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Dear David, please be more specific what kind of files and where do you want
to write? What is the error message you get? Cheers Helge Von:
[hidden email] [mailto:[hidden email]] Im Auftrag von David
Long Hello everyone, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Hello Helge,
the error message is "ACCESS DENIED". This happens in an image when it is trying to save the change log. Worse, in a runtime image it happens when it is trying to save a parcel file. I can catch the problem, but don't seem to know how to tell windows 7 to set the file permission so that I can actually write the file. I've tried doing it manually by setting the file permission in windows explorer, still no good. The problem does not seem to be just smalltalk. If you google "can't write files windows 7" there are many programmers and users running into this. Here is one article which is basically what I am hitting: http://superuser.com/questions/33373/windows-7-you-dont-have-permissions-to-save-in-this-folder I was wondering if the new Smalltalk has any solution for installing and running in Windows 7, and specifically, how to write parcel files without getting an access control error. thanks, David -----Original Message----- From: Nowak, Helge <[hidden email]> To: David Long <[hidden email]>, [hidden email] Subject: AW: [vwnc] Windows 7 and Visualworks / file write error Date: Mon, 20 Dec 2010 16:26:46 -0000 Mailer: Produced By Microsoft Exchange V6.5 Dear David, please be more specific what kind of files and where do you want to write? What is the error message you get? Cheers Helge Von:[hidden email] [mailto:[hidden email]] Im Auftrag von David Long Gesendet: Montag, 20. Dezember 2010 17:23 An: [hidden email] Betreff: [vwnc] Windows 7 and Visualworks / file write error Hello everyone, I've been experiencing a problem with Windows 7 and access to writing files. There is some new type of user access control which prevents writing files. I was wondering if anyone had experienced this and new of a solution under Smalltalk? thanks, David _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On Windows 7 you have write permissions only in certain folders,
especially *not* in the “Programs” and “Programs (x86)” folders. You
have to put your images, change logs, parcels etc. elsewhere, e. g. in your “Documents”
of the “Program Data” directories. HTH Helge Von: David Long
[mailto:[hidden email]] Hello Helge, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by david.long
You don’t want the user writing anything under Program Files, since that’s not allowed anymore in Vista and Win7. Write to the user’s Documents folder instead. Even if you do that, there are some oddities. Maybe you installed as one user (e.g. because of UAC “upgrading” your rights), but run as another? The files are then stored in the user profile with the higher rights, but your lower-right account is given access to them. Unfortunately, that access is read-only. See here for more: http://www.metacase.com/forums/forum_posts.asp?TID=33&PID=80#80 Steve From: [hidden email] [mailto:[hidden email]] On Behalf Of David Long Hello everyone, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Windows 7 implements more granular user access privileges enforcement
as well as UAC makes every user to run at user level even when the User is part of the Administrator group. So if One user installs files he wants to share with others -- he has to explicitly specify access privileges to the users and/or groups. Here is a solution to that problem: During the installation of the program make sure that the user has an admin privileges to the PC and run the install script(s) "as administrator". During the install time you would need to use something like icacls - built in windows 7, xcacls for earlier versions of windows or setacl.exe. Using one of those program you can specify the folders on the file system ( "program files" included ) and user groups who have a "modify" permissions on those folders. NOTE: when using any of the above commands make sure to use numeric groups designators like "S-1-1-0" instead of typical "users" "administrators". The reason on non English version of windows user will be called something else language specific like "todos" , "usarious", etc. take a look at: http://helgeklein.com/setacl/examples/managing-file-system-permissions-with-setacl-exe/ http://support.microsoft.com/kb/243330 http://support.microsoft.com/kb/919240 Steven Kelly wrote: > > You don’t want the user writing anything under Program Files, since > that’s not allowed anymore in Vista and Win7. Write to the user’s > Documents folder instead. > > Even if you do that, there are some oddities. Maybe you installed as > one user (e.g. because of UAC “upgrading” your rights), but run as > another? The files are then stored in the user profile with the higher > rights, but your lower-right account is given access to them. > Unfortunately, that access is read-only. See here for more: > > http://www.metacase.com/forums/forum_posts.asp?TID=33&PID=80#80 > <http://www.metacase.com/forums/forum_posts.asp?TID=33&PID=80#80> > > Steve > > *From:* [hidden email] [mailto:[hidden email]] *On > Behalf Of *David Long > *Sent:* 20. joulukuuta 2010 18:23 > *To:* [hidden email] > *Subject:* [vwnc] Windows 7 and Visualworks / file write error > > Hello everyone, > > I've been experiencing a problem with Windows 7 and access to writing > files. There is some new type of user access control which > prevents writing files. I was wondering if anyone had experienced this > and new of a solution under Smalltalk? > > thanks, > > David > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Steven Kelly
Hi Steven,
yup, I fixed it by using SystemUtils to look up the value of the 'APPDATA' environment variable. thanks, David On Mon, Dec 20, 2010 at 11:42 AM, Steven Kelly <[hidden email]> wrote:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |