aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-12-06 22:40:35 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-12-06 22:40:35 +0000
commitc1ad5b4b10c5e426d3d782b7216a038187419a1e (patch)
tree8fcf31326d38a89b6ddd5a6ee1cec0a26f10cc37 /sbin
parent8f7835acc6d6d39854a82173d4cf10695c6eea13 (diff)
cd9660: Apply the file and directory mode masks bits to all 12 access bits
This permits the mask bits to control the upper 3 bits used for setuid, setgid, and sticky permissions. While here, clarify the manpage language as non-Rockridge volumes with extended attributes can also supply users and groups along with permissions. Reviewed by: olce Fixes: 82f2275b73e5 cd9660: Add support for mask,dirmask,uid,gid options Differential Revision: https://reviews.freebsd.org/D47357
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.823
1 files changed, 12 insertions, 11 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.8 b/sbin/mount_cd9660/mount_cd9660.8
index 017ad7ee9a11..19c3ca5cf012 100644
--- a/sbin/mount_cd9660/mount_cd9660.8
+++ b/sbin/mount_cd9660/mount_cd9660.8
@@ -73,30 +73,31 @@ version number.
.It Fl G Ar group
Set the group of the files in the file system to
.Ar group .
-The default gid on non-Rockridge volumes is zero.
+The default gid on volumes without extended attributes or Rockridge extensions
+is zero.
.It Fl U Ar user
Set the owner of the files in the file system to
.Ar user .
-The default uid on non-Rockridge volumes is zero.
+The default uid on volumes without extended attributes or Rockridge extensions
+is zero.
.It Fl m Ar mask
Specify the maximum file permissions for files
in the file system.
-(For example, a
+For example, a
.Ar mask
of
-.Li 755
-specifies that, by default, the owner should have
-read, write, and execute permissions for files, but
-others should only have read and execute permissions).
+.Li 544
+limits the owner to
+read and execute permissions for files and
+others to only read permission.
See
.Xr chmod 1
for more information about octal file modes.
-Only the nine low-order bits of
-.Ar mask
-are used.
The default
.Ar mask
-on non-Rockridge volumes is 755.
+is 7777.
+The default permissions on volumes without extended attributes or Rockridge
+extensions is 555.
.It Fl M Ar mask
Specify the maximum file permissions for directories
in the file system.