You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/files/storage-how-to-use-files-linux.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,9 +71,9 @@ uname -r
71
71
72
72
On other distributions, use the appropriate package manager or [compile from source](https://wiki.samba.org/index.php/LinuxCIFS_utils#Download).
73
73
74
-
***The most recent version of the Azure Command Line Interface (CLI).** For more information on how to install the Azure CLI, see [Install the Azure CLI](/cli/azure/install-azure-cli) and selectyour operating system. If you prefer to use the Azure PowerShell module in PowerShell 6+, you may, however the instructions in this article are for the Azure CLI.
74
+
***The most recent version of the Azure Command Line Interface (CLI).** For more information on how to install the Azure CLI, see [Install the Azure CLI](/cli/azure/install-azure-cli) and selectyour operating system. If you prefer to use the Azure PowerShell module in PowerShell 6+, you may; however, the instructions in this article are for the Azure CLI.
75
75
76
-
***Ensure port 445 is open**: SMB communicates over TCP port 445 - check to see ifyour firewall is not blocking TCP ports 445 from client machine. Replace `<your-resource-group>` and `<your-storage-account>`then run the following script:
76
+
***Ensure port 445 is open**: SMB communicates over TCP port 445 - make sure your firewall or ISP isn't blocking TCP port 445 from the client machine. Replace `<your-resource-group>` and `<your-storage-account>` and then run the following script:
77
77
78
78
```bash
79
79
resourceGroupName="<your-resource-group>"
@@ -96,7 +96,7 @@ uname -r
96
96
Connection to <your-storage-account> 445 port [tcp/microsoft-ds] succeeded!
97
97
```
98
98
99
-
If you are unable to open up port 445 on your corporate network or are blocked from doing so by an ISP, you may use a VPN connection or ExpressRoute to work around port 445. For more information, see [Networking considerations for direct Azure file share access](storage-files-networking-overview.md).
99
+
If you're unable to open up port 445 on your corporate network or are blocked from doing so by an ISP, you may use a VPN connection or ExpressRoute to work around port 445. For more information, see [Networking considerations for direct Azure file share access](storage-files-networking-overview.md).
100
100
101
101
## Mount the Azure file share on-demand with mount
102
102
When you mount a file share on a Linux OS, your remote file share is represented as a folder in your local file system. You can mount file shares to anywhere on your system. The following example mounts under the `/mount` path. You can change this to your preferred path you want by modifying the `$mntRoot` variable.
@@ -133,7 +133,7 @@ storageAccountKey=$(az storage account keys list \
133
133
--account-name $storageAccountName \
134
134
--query "[0].value" --output tsv | tr -d '"')
135
135
136
-
sudo mount -t cifs $smbPath$mntPath -o username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30
136
+
sudo mount -t cifs $smbPath$mntPath -o username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30,mfsymlinks
137
137
```
138
138
139
139
# [SMB 3.0](#tab/smb30)
@@ -150,7 +150,7 @@ storageAccountKey=$(az storage account keys list \
150
150
--account-name $storageAccountName \
151
151
--query "[0].value" --output tsv | tr -d '"')
152
152
153
-
sudo mount -t cifs $smbPath$mntPath -o vers=3.0,username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30
153
+
sudo mount -t cifs $smbPath$mntPath -o vers=3.0,username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30,mfsymlinks
154
154
```
155
155
156
156
# [SMB 2.1](#tab/smb21)
@@ -167,14 +167,14 @@ storageAccountKey=$(az storage account keys list \
167
167
--account-name $storageAccountName \
168
168
--query "[0].value" --output tsv | tr -d '"')
169
169
170
-
sudo mount -t cifs $smbPath$mntPath -o vers=2.1,username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30
170
+
sudo mount -t cifs $smbPath$mntPath -o vers=2.1,username=$storageAccountName,password=$storageAccountKey,serverino,nosharesock,actimeo=30,mfsymlinks
171
171
```
172
172
173
173
---
174
174
175
-
You can use `uid`/`gid` or `dir_mode` and `file_mode`in the mount options for the `mount`command to set permissions. For more information on how to set permissions, see [UNIX numeric notation](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) on Wikipedia.
175
+
You can use `uid`/`gid` or `dir_mode` and `file_mode`in the mount options for the `mount`command to set permissions. For more information on how to set permissions, see [UNIX numeric notation](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation).
176
176
177
-
You can also mount the same Azure file share to multiple mount points if desired. When you aredone using the Azure file share, use `sudo umount $mntPath` to unmount the share.
177
+
You can also mount the same Azure file share to multiple mount points if desired. When you're done using the Azure file share, use `sudo umount $mntPath` to unmount the share.
178
178
179
179
## Automatically mount file shares
180
180
When you mount a file share on a Linux OS, your remote file share is represented as a folder in your local file system. You can mount file shares to anywhere on your system. The following example mounts under the `/mount` path. You can change this to your preferred path you want by modifying the `$mntRoot` variable.
0 commit comments