From 8523d2037f69be43d9e2169754fa73038963a965 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Sun, 2 Jul 2023 15:11:45 +0200 Subject: [PATCH] mount.{cifs,smb3}: add page (#10416) --- pages/linux/mount.cifs.md | 17 +++++++++++++++++ pages/linux/mount.smb3.md | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 pages/linux/mount.cifs.md create mode 100644 pages/linux/mount.smb3.md diff --git a/pages/linux/mount.cifs.md b/pages/linux/mount.cifs.md new file mode 100644 index 000000000..addba7bcb --- /dev/null +++ b/pages/linux/mount.cifs.md @@ -0,0 +1,17 @@ +# mount.cifs + +> Mount SMB (Server Message Block) or CIFS (Common Internet File System) shares. +> Note: you can also do the same thing by passing the `-t cifs` option to `mount`. +> More information: . + +- Connect using the specified username or `$USER` by default (you will be prompted for a password): + +`mount.cifs -o user={{username}} //{{server}}/{{share_name}} {{mountpoint}}` + +- Connect as the guest user (without a password): + +`mount.cifs -o guest //{{server}}/{{share_name}} {{mountpoint}}` + +- Set ownership information for the mounted directory: + +`mount.cifs -o uid={{user_id|username}},gid={{group_id|groupname}} //{{server}}/{{share_name}} {{mountpoint}}` diff --git a/pages/linux/mount.smb3.md b/pages/linux/mount.smb3.md new file mode 100644 index 000000000..b55a85704 --- /dev/null +++ b/pages/linux/mount.smb3.md @@ -0,0 +1,8 @@ +# mount.smb3 + +> This command is an alias of `mount.cifs`. +> Note: for SMB versions before 3 you have to use `mount.cifs` instead. + +- View documentation for the original command: + +`tldr mount.cifs`