Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


Return to article

Permissions for Renaming a File
 

What permissions does Windows require in order to rename a file?

Windows treats a file renaming operation as a deletion of the file and creation of a new file with the new name. Therefore, you must have either the Delete permission on the file itself or the Delete Subfolders and Files permission on the folder that contains the file. You must also have Write Data permission on the folder because of the new-file creation. In addition to these permissions, the ren command requires Read Attributes permission and Synchronize permission to both the folder and the actual file and the List Directory permission to the folder. These permissions allow the ren command to check for the existence of the file and verify that the file's attributes (e.g., the Read Only attribute) don't prevent the rename.







Reader Comments

That's interesting, useful to know the exact list. But trying to make everything fit, one thing that seems inconsistent is that a file's created and modified dates are unchanged by a rename.(*) Also, Emergency UnDelete doesn't see rename ops as 'undeletable'. Am I missing something? -Mark (*) the file's accessed date _is_ affected.

mmcginty -December 24, 2005
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement