410328
asked on
How can limited users in XP share (and edit) files from each other with a NTFS
Hello,
I've read a lot of documentation about ownership / permissions etc. But still have one big problem:
On Win XP pro with NTFS:
User 1 (limited account) is creating a xml-file with VB6
User 2 (also limited account) gets a "permission denied" when retrieving this file
I tried several locations for the file, f.e. "shared documents etc." but still get the same problem.
As an administrator I do not have this problem, because I can change the onwnership of the file to "Everyone". But limited account do not have rights to change ownership.
Any solution is very welcome!
With greetings,
A. Calje
I've read a lot of documentation about ownership / permissions etc. But still have one big problem:
On Win XP pro with NTFS:
User 1 (limited account) is creating a xml-file with VB6
User 2 (also limited account) gets a "permission denied" when retrieving this file
I tried several locations for the file, f.e. "shared documents etc." but still get the same problem.
As an administrator I do not have this problem, because I can change the onwnership of the file to "Everyone". But limited account do not have rights to change ownership.
Any solution is very welcome!
With greetings,
A. Calje
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since my first comment I've had a few additional thoughts. First, since the folder with the XML file is on an XP machine, use the effective permissions tab (file/folder properties, security tab, advanced, effective permissions) and verify that the user accounts have the necessary rights. Second, have one of the users with a restricted account try to open the XML file with Notepad. If they're successful, then the problem isn't a permissions issue. Third, check the event logs on both the PC with the XML file and the PC the user is trying to open it from and see if there are any messages that might help figure out what the problem is.
ASKER
Thank you BlueDevilFan for your suggestions and good ideas!
After your comment I made a sample application with xml.save and xml.load wich created a file per user and opens it per user.
In Ourfolder that was changed with cacls I had no problems writing and reading.
So thats good news! So I had to find the problem somewhere else. I started digging in my source and discovered that I use a function (after I saved a xml-file with xml.save) that changes the layout of a xml-file. Usually a xml file looks like <data><Name>Jane</Name><Na me>Charles </Name></d ata>
Because thats not good readable I made a function that opens it for input and saves it for output to a new file in the structure:
<data>
<Name>Jane</Name>
<Name>Charles</Name>
</data>
after that I renamed it to the origional file
Files changed in this way result in "the access denied"- error when read by another user
Skipping this function all files can be read, edit and saved by everyone!
So, thanks again for pointing me in the right way!
After your comment I made a sample application with xml.save and xml.load wich created a file per user and opens it per user.
In Ourfolder that was changed with cacls I had no problems writing and reading.
So thats good news! So I had to find the problem somewhere else. I started digging in my source and discovered that I use a function (after I saved a xml-file with xml.save) that changes the layout of a xml-file. Usually a xml file looks like <data><Name>Jane</Name><Na
Because thats not good readable I made a function that opens it for input and saves it for output to a new file in the structure:
<data>
<Name>Jane</Name>
<Name>Charles</Name>
</data>
after that I renamed it to the origional file
Files changed in this way result in "the access denied"- error when read by another user
Skipping this function all files can be read, edit and saved by everyone!
So, thanks again for pointing me in the right way!
ASKER
To be more specific:
I created a folder as Gerry suggested ( f:\Ourfolder )
When I set the permission to this folder like:
cacls f:\Ourfolder /g everyone:f
(for the folder)
and
cacls f:\Ourfolder\*.* /g everyone:f
(for the files in it)
that works fine. Users can share edit each other txt-files
But when I try to open a xml-document with xml.load mydoc.xml (where mydoc.xml is created by another limited user) I get "Access denied" Error -214702489 to be exact (and not Permission denied)
I can solve this problem by setting the permissions again with cacls and setting the permission to full for *.* in f:\ourfolder. But you can only use cacls as an administrator
So files created after using cacls are still owned by their creator...