Tuesday, May 20, 2008

Windows File sharing in Windows - Focus: Permissions

"I am getting a permissions error on those 2 files"
"But the permissions are setup fine. It works when I go to it"
"It is because you Moved them to that folder, so permissions are not inhereted. You need to force the permissions on the folder again"
"What?"

Keep in mind that I was talknig to a Mac fan-boy. But he is also very good with Windows, and supports a server application for Windows for a living.


The basics:
How to configure file sharing in Windows XP
http://support.microsoft.com/kb/304040

The "Managing levels of access to shares and to files" section touches on permissions. The important this to note from this is: There are two types of permissions on Windows NT-based file shares: Share permissions and NTFS permissions.
This only applies if you have an NTFS formatted hard driver, but that is the default format in Windows NT, Windows 2000, Windows XP, Windows Server 2003 and Windows Vista (and I think in Windows Server 2008).

There is no point in me making a guide with screenshots when many already exist:
Build Your Skills: NTFS permissions in Windows 2000
http://articles.techrepublic.com.com/5100-10878_11-1056389.html

Step-By-Step: How to set and troubleshoot NTFS permissions in Windows XP
http://articles.techrepublic.com.com/5100-10878_11-1055994.html

Windows Vista - File sharing essentials
http://windowshelp.microsoft.com/windows/en-us/help/e20e6875-7210-47bb-bf19-5c60e6ae86151033.mspx


However, the thing the everyone seems to miss is:
A copy of files to a folder inherits the new folder's permissions (within the same NTFS partition)
A move of files to a folder retains the old folder's permissions (within the same NTFS partition)


Acroos NTFS partitions is different:
A copy of files to a folder inherits the new folder's permissions (across different NTFS partitions)
A move of files to a folder inherits the new folder's permissions (across different NTFS partitions)


All copy of moves to non-NTFS partitions loose permissions, cause non-NTFS partitions don't have permissions (like FAT). If your OS supports a File System other than NTFS that does support permissions, then it may do some conversion or something. I dunno.


For more info, or see if explaimed another way, go here:
What happens to NTFS permissions when you copy
http://www.tech-faq.com/ntfs-permissions-copy-move.shtml

No comments: