Skip to content

Commit 9098406

Browse files
authored
Merge pull request #775 from memorysafety/readme-nitpick
add sentence about globbing not being supported
2 parents 6748b1c + df877ef commit 9098406

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ Some other notable restrictions to be aware of:
7070
the sudoers file.
7171
* sudo-rs will not include the sendmail support of original sudo.
7272
* The sudoers file must be valid UTF-8.
73+
* To prevent a common configuration mistake in the sudoers file, wildcards
74+
are not supported in *argument positions* for a command.
75+
E.g., `%sudoers ALL = /sbin/fsck*` will allow `sudo fsck` and `sudo fsck_exfat` as expected,
76+
but `%sudoers ALL = /bin/rm *.txt` will not allow an operator to run `sudo rm README.txt`,
77+
nor `sudo rm -rf /home .txt`, as with original sudo.
7378

7479
If you find a common use case for original sudo missing, please create a feature
7580
request for it in our issue tracker.

0 commit comments

Comments
 (0)