Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

22
linux/mount.cifs Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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: <https://manned.org/mount.cifs>.
- 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}}`