Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Exit Status<br />
Related Information<br />
Examples<br />
Each clause specifies one or more operations to be performed on the mode bits,<br />
and each operation is applied to the mode bits in the order specified.<br />
v 0 on success<br />
v >0 if an error occurs<br />
v chgrp - Change file group permission<br />
v chown - Change file ownership<br />
1. Make a file readable by anyone and writable by the owner.<br />
chmod 644 foo<br />
2. Deny write permission to the group and others.<br />
chmod go-w foo<br />
3. Set the read and write permissions to the usual defaults, and retain any execute<br />
permissions that are currently set.<br />
chmod =rw,+X foo<br />
4. Make a directory or file searchable/executable by everyone if it is already<br />
searchable/executable by anyone.<br />
chmod +X foo<br />
5. Make a file readable/executable by everyone and writable by the owner only.<br />
chmod 755 foo<br />
6. Clear all mode bits for the group and others.<br />
chmod go= foo<br />
7. Set the group bits equal to the owner bits, but clear the group write bit.<br />
chmod g=u-w foo<br />
[ Legal | AS/400 Glossary ]<br />
chown - Change file ownership<br />
Synopsis<br />
Description<br />
chown [-R] Owner[:Group] {File ... | <strong>Directory</strong> ... }<br />
You can use chown to set the user identifier of the File or <strong>Directory</strong> operand to the<br />
user identifier specified by the Owner operand. Optionally, the chown command<br />
can also set the group identifier of the File or <strong>Directory</strong> operand to the group<br />
identifier specified by the Group operand.<br />
To change the owner or group identifier, you must have one of the following<br />
authorities:<br />
v The current user profile has *ALLOBJ special authority.<br />
Chapter 4. Utilities 49