29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

1. Change the group id for the file, “newgui.java” to “abbey”.<br />

chgrp abbey newgui.java<br />

2. Change the group id for the sub-directory, “personal.dir” to include all files and<br />

sub-directories below this directory to “managers”.<br />

chgrp -R managers personal.dir<br />

[ Legal | AS/400 Glossary ]<br />

chmod - Change file modes<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

chmod [ -R [-H | -L | -P] ] mode file ...<br />

The chmod utility modifies the file mode bits of the listed files as specified by the<br />

mode operand.<br />

To change the mode of a file, you must have one of the following authorities:<br />

v The current user profile has *ALLOBJ special authority.<br />

v The current user profile is the owner of the file.<br />

Symbolic links do not have modes, so unless the -H or -L option is set, chmod on<br />

a symbolic link always succeeds and has no effect. The -H, -L and -P options are<br />

ignored unless the -R option is specified. In addition, these options override each<br />

other and the command’s actions are determined by the last one specified.<br />

-H If the -R option is specified, symbolic links on the command line are<br />

followed. (Symbolic links encountered in the tree traversal are not followed.)<br />

-L If the -R option is specified, all symbolic links are followed.<br />

-P If the -R option is specified, no symbolic links are followed.<br />

-R Change the modes of the file hierarchies rooted in the specified files<br />

instead of just the files themselves.<br />

Modes may be absolute or symbolic. An absolute mode is an octal number<br />

constructed by or-ing the following values:<br />

0400 read by owner<br />

0200 write by owner<br />

0100 execute/search by owner<br />

0040 read by group<br />

0020 write by group<br />

Chapter 4. Utilities 47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!