
86
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
--level numbers
Specify by number the runlevels to change. Provide numbers as
a numeric string: e.g., 016 for levels 0, 1 and 6. Use this to
override specified defaults.
--list [service]
Print whether the specified service is on or off in each level. If
no service is specified, print runlevel information for all
services managed by chkconfig.
chmod
chmod [options] mode files
chmod [options] --reference=filename files
Change the access mode (permissions) of one or more files. Only
the owner of a file or a privileged user may change the mode. mode
can be numeric or an expression in the form of who opcode permis-
sion. who is optional (if omitted, default is a); choose only one
opcode. Multiple modes are separated by commas.
Options
-c, --changes
Print information about files that are changed.
-f, --silent, --quiet
Do not notify user of files that chmod cannot change.
--help
Print help message and then exit.
-R, --recursive
Traverse subdirectories recursively, applying changes.
--reference=filename
Change permissions to match those associated with filename.
-v, --verbose
Print information about each file, whether changed or not.
--version
Print version information and then exit.
Who
u User.
g Group.
o Other.
a All (default).
Opcode
+ Add permission.
- Remove permission.
= Assign