Skip to content

Commit 03f6513

Browse files
authored
Merge pull request #112271 from yuemlu/master
Update the mount command
2 parents 200cfdc + b5e71e4 commit 03f6513

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

includes/storage-files-aad-permissions-and-mounting.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,14 @@ The following sets of permissions are supported on the root directory of a file
8282
- NT AUTHORITY\SYSTEM:(F)
8383
- CREATOR OWNER:(OI)(CI)(IO)(F)
8484

85-
### Configure NTFS permissions with icacls
86-
Use the following Windows command to grant full permissions to all directories and files under the file share, including the root directory. Remember to replace the placeholder values in the example with your own values.
87-
88-
```
89-
icacls <mounted-drive-letter>: /grant <user-email>:(f)
90-
```
91-
92-
For more information on how to use icacls to set NTFS permissions and on the different types of supported permissions, see [the command-line reference for icacls](https://docs.microsoft.com/windows-server/administration/windows-commands/icacls).
93-
9485
### Mount a file share from the command prompt
9586

9687
Use the Windows **net use** command to mount the Azure file share. Remember to replace the placeholder values in the following example with your own values. For more information about mounting file shares, see [Use an Azure file share with Windows](../articles/storage/files/storage-how-to-use-files-windows.md).
9788

9889
```
9990
net use <desired-drive-letter>: \\<storage-account-name>.file.core.windows.net\<share-name> /user:Azure\<storage-account-name> <storage-account-key>
10091
```
92+
10193
### Configure NTFS permissions with Windows File Explorer
10294
Use Windows File Explorer to grant full permission to all directories and files under the file share, including the root directory.
10395

@@ -110,6 +102,15 @@ Use Windows File Explorer to grant full permission to all directories and files
110102
8. In the **Security** tab, select all permissions you want to grant your new user.
111103
9. Select **Apply**.
112104

105+
### Configure NTFS permissions with icacls
106+
Use the following Windows command to grant full permissions to all directories and files under the file share, including the root directory. Remember to replace the placeholder values in the example with your own values.
107+
108+
```
109+
icacls <mounted-drive-letter>: /grant <user-email>:(f)
110+
```
111+
112+
For more information on how to use icacls to set NTFS permissions and on the different types of supported permissions, see [the command-line reference for icacls](https://docs.microsoft.com/windows-server/administration/windows-commands/icacls).
113+
113114
## 4. Mount a file share from a domain-joined VM
114115

115116
The following process verifies that your file share and access permissions were set up correctly and that you can access an Azure File share from a domain-joined VM. Be aware that the share level RBAC role assignment can take some time to be in effect.

0 commit comments

Comments
 (0)