Need to copy only ACLs from Virtual Windows to Native Ubuntu
I'm using Ubuntu 10.10 as my host os and have installed Windows 7 in VirtualBox.
I've shared a folder named "Destination" using samba in ubuntu and I can access it through my virtual windows.
I've created few files in virtual windows at location "C:\Source\" and those files have different permissions for different users.
I'm using robocopy tool from Microsoft to copy security information from virtual windows box to ubuntu box.
What I want to do is to copy only ACLs first and then simply copy paste files to same destination to see whether ACLs are automatically mapped to pasted files.
After executing this command:
robocopy C:\Source\ \\<ip_addr>\Destination\ *.* /copy:s
It's not showing any error. So, I think ACLs are getting copied. But after doing that, when I simply copy paste same files to ubuntu box directly on the same Destination, I don't see any of the ACLs maintained. Please help how to do I want to do.
Thanks a ton.
There are two problems I see here. One, the Windows ACL system has nothing to do with that of Linux (POSIX actually), they are different. That said, there are things that can be done to more or less represent the same permissions in either system.
Second problem is that you don't even seem to share the same user database or ID mapping between the systems, so how do you expect to maintain any kind of permission info when you transfer files between them?
My advice is that if the ACLs aren't too complex, just replicate them by hand using setfacl. If not, you are in to an adventure into joining a windows machine and a linux machine to the same authentication domain and share the user database. If that's your wish, you can begin reading here, here and here.
Sorry for late reply.
Thanks for these links. Seems it's more complex then I thought it would be.
Now I get an error that "This security ID may not be assigned as the owner of this object."
I tried solving this on google but it's more confusing now.
Where and what exactly I need to change? In Virtual Windows or Native Ubuntu?
Thanks in advance.
|All times are GMT -5. The time now is 11:25 AM.|