Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 19, 2005 12:00 AM

Permissions for Renaming a File

Windows IT Pro
InstantDoc ID #48573
Rating: (6)

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.

Related Content:

ARTICLE TOOLS

Comments
  • Mark
    7 years ago
    Dec 24, 2005

    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.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.