aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/chmod.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-11-25 16:00:47 -0600
committerRob Landley <rob@landley.net>2020-11-25 16:00:47 -0600
commite3ce0338d4c4d60052b6f9f92175218cf6cf97c8 (patch)
treed9723eb34a91267c9d6a8483a94a550766d7ff16 /toys/posix/chmod.c
parentfdfffae6da237b861ff3ef7394a9fc539e5a6e8c (diff)
downloadtoybox-e3ce0338d4c4d60052b6f9f92175218cf6cf97c8.tar.gz
Fix help text to explain why o+s isn't +t, add test +s not setting +t.
Diffstat (limited to 'toys/posix/chmod.c')
-rw-r--r--toys/posix/chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/chmod.c b/toys/posix/chmod.c
index 3645ebc8..3838b527 100644
--- a/toys/posix/chmod.c
+++ b/toys/posix/chmod.c
@@ -19,7 +19,7 @@ config CHMOD
Stanzas are applied in order: For each category (u = user,
g = group, o = other, a = all three, if none specified default is a),
set (+), clear (-), or copy (=), r = read, w = write, x = execute.
- s = u+s = suid, g+s = sgid, o+s = sticky. (+t is an alias for o+s).
+ s = u+s = suid, g+s = sgid, +t = sticky. (o+s ignored so a+s doesn't set +t)
suid/sgid: execute as the user/group who owns the file.
sticky: can't delete files you don't own out of this directory
X = x for directories or if any category already has x set.