From 094dd0fe63032d8cc8e5775bc70579de61d2a765 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Fri, 2 Dec 2022 12:22:55 +0800 Subject: [PATCH] mount: add example of mounting for a specific user (#9572) --- pages/common/mount.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/mount.md b/pages/common/mount.md index 257a78a9f..fce9c6f4c 100644 --- a/pages/common/mount.md +++ b/pages/common/mount.md @@ -15,6 +15,10 @@ `mount --mkdir {{path/to/device_file}} {{path/to/target_directory}}` +- Mount a device to a directory for a specific user: + +`mount -o uid={{user_id}},gid={{group_id}} {{path/to/device_file}} {{path/to/target_directory}}` + - Mount a CD-ROM device (with the filetype ISO9660) to `/cdrom` (readonly): `mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`