DCHMOD(1)
๐ธ NAME ๐ธ
okay bestie, welcome to dchmod(1) โ the mpiFileUtils page thatโs about to make permissions feel way less mysterious ๐
dchmod โ distributed tool to set permissions and group.
โจ SYNOPSIS โจ
dchmod [OPTION] PATH ...
๐ DESCRIPTION ๐
Parallel MPI application to recursively change permissions and/or group from a top level directory.
dchmod provides functionality similar to chmod(1), chown(1), and chgrp(1). Like chmod(1), the tool supports the use of octal or symbolic mode to change the permissions. iconic behavior, honestly โจ
๐ OPTIONS ๐
-i,--input FILEโ Read source list fromFILE.FILEmust be generated by another tool from thempiFileUtilssuite. ๐ซถ-u,--owner USERโ Change owner to specifiedUSERname or numeric user id. ๐-g,--group GROUPโ Change group to specifiedGROUPname or numeric group id. ๐-m,--mode MODEโ The mode to apply to each item.MODEmay be octal or symbolic syntax similar tochmod(1). In symbolic notation,"ugoa"are supported as are"rwxX". As withchmod, if no leading letter"ugoa"is provided, mode bits are combined withumaskto determine the actual mode. mode math bestie, slay ๐งฎโจ-f,--forceโ Attempt to change every item. By default,dchmodavoids unncessarychownandchmodcalls, for example trying to change the group on an item that already has the correct group, or trying to change the group on an item that is not owned by the user running the tool. With--force,dchmodexecuteschown/chmodcalls on every item. ๐ค๐ฅ-s,--silentโ SuppressEPERMerror messages, which is useful when runningdchmodon large directories with files owned by other users. ๐คซ๐--exclude REGEXโ Do not modify items whose full path matchesREGEX, processed byregexec(3). ๐--match REGEXโ Only modify items whose full path matchesREGEX, processed byregexec(3). ๐ฏ-n,--nameโ Change--excludeand--matchto apply to item name rather than its full path. ๐ท๏ธ--progress Nโ Print progress message to stdout approximately everyNseconds. The number of seconds must be a non-negative integer. A value of0disables progress messages. โฑ๏ธ-v,--verboseโ Run in verbose mode. Prints a list of statistics including the number of files walked, the number of levels there are in the directory tree, and the number of files the command operated on, and the files/sec rate for each of those. ๐๐-q,--quietโ Run tool silently. No output is printed. ๐ค-h,--helpโ Print the command usage, and the list of options available. ๐โจ
๐ EXAMPLES ๐
- Use octal mode to change permissions:
mpirun -np 128 dchmod --mode 755 /directory
- Set group and mode in a single command using symbolic mode:
mpirun -np 128 dchmod --group mygroup --mode u+r,g+rw /directory
- Set owner and group, leaving permissions the same:
mpirun -np 128 dchmod --owner user1 --group mygroup /directory
- Change permissions to
u+rwon all items EXCEPT those whose name match regex:
mpirun -np 128 dchmod --name --exclude โafilenameโ --mode u+rw
/directory
Note: You can use --match to change file permissions on all of the files/directories that match the regex. ๐
๐ฆ SEE ALSO ๐ฆ
The mpiFileUtils source code and all documentation may be downloaded from https://github.com/hpc/mpifileutils ๐ซถโจ
๐ AUTHOR ๐
HPC ๐
๐ COPYRIGHT ๐
2022, LLNL/LANL/UT-Battelle/DDN ๐
mwah bestie ๐ โ mpiFileUtils version 0.12, dated Jan 29, 2025. DCHMOD(1) out! ๐ซถโจ
๐ฆ where this page comes from
- nixpkgs unstable: mpifileutils 0.12
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms