Aug 29, 2006, at 6:14 AM, Joseph Nastasi wrote: > >I have an app that loads some PNG images that are in a sub folder >in the app's main folder. It works fine for most XP users, but >occasionally, they cannot be read and cause the app's error window >to pop open. > >It seems to be a User setup thing. An Administrator can run it, of >course, and so can most user-created accounts. One customer has two >user accounts on one machine and the program can access the files on >one and and not the other. > >Could someone familiar with XP admin let me know where I should start >looking at settings, etc. so I can at least warn XP folks to not use >certain settings. Or am I just missing a more obvious way of getting >around this?
In a default XP installation, users basically run with admin (read: root) level privileges (which is a source of a lot of security holes). Clueful users and administrators will change this so that users run with the minimum privileges necessary to get their work done. It sounds like you've run into a situation featuring clueful users and/or admins. A user should generally have no problem _reading_ files in a subdirectory of "C:\Program Files", assuming that the subdirectory has inherited the ACLs from "C:\Program Files". You should check the following: 1. Is your program attempting to open the PNG files with read/write access, or read-only access? If the former, that's your problem. Use read-only access. 2. As Chris Little suggested, have one of the users experiencing the problem check the permissions on "C:\Program Files" and on your subdirectory to make sure that 1) they are the same and 2) the group "Users" has "Read", "List Folder Contents" and "Read & Execute" permissions on both. The first is absolutely necessary, the second and third might be, depending on exactly what your program is doing. 3. The user accounts that are experiencing the problem should be members of the group "Users". If at all possible, I would avoid Jamie Lay's suggestion to put them in "C:\Documents and Settings\All Users\Application Data\My Folder". While it's not totally horrible, it is definitely a kludge and shouldn't be necessary under most circumstances (no disrespect to Jamie). -- Charles Calvert Celtic Wolf, Inc. (703) 580-0210 [EMAIL PROTECTED] http://www.celticwolf.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
