-->

Previous | Table of Contents | Next

Page 60

AVAILABILITY

chattr is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in /pub/linux/packages/ext2fs.

SEE ALSO

lsattr(1)

Version 0.5b, November 1994

chfn

chfn—Change your finger information

SYNOPSIS


chfn [ _f full-name ][_o office][_p office-phone ] [ _h home-phone ] [ _u ] [ _v ]

[username ]

DESCRIPTION

chfn is used to change your finger information. This information is stored in the /etc/passwd file, and is displayed by the finger program. The Linux finger command will display four pieces of information that can be changed by chfn: your real name, your work room and phone, and your home phone.

COMMAND LINE

Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters interactive mode.

INTERACTIVE MODE

In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword none to make the field blank.

OPTIONS

_f, —full-name Specify your real name.
_o, —office Specify your office room number.
_p, —office-phone Specify your office phone number.
_h, —home-phone Specify your home phone number.
_u, —help Print a usage message and exit.
-v, —version Print version information and exit.

SEE ALSO

finger(1), passwd(5)

AUTHOR

Salvatore Valente (<svalente@mit.edu>)

chfn, October 13 1994

Page 61

chgrp

chgrp—Change the group ownership of files

SYNOPSIS


chgrp [_Rcfv] [—recursive] [—changes] [—silent] [—quiet] [—verbose] [—help]

[—version] group file...

DESCRIPTION

This manual page documents the GNU version of chgrp. chgrp changes the group ownership of each given file to the named group, which can be either a group name or a numeric group ID.

OPTIONS

_c, —changes Verbosely describe only files whose ownership actually changes.
_f, —silent, —quiet Do not print error messages about files whose ownership cannot be changed.
_v, —verbose Verbosely describe ownership changes.
_R, —recursive Recursively change ownership of directories and their contents.
—help Print a usage message on standard output and exit successfully.
—version Print version information on standard output, then exit successfully.
GNU File Utilities

chkdupexe

chkdupexe—Find duplicate executables

SYNOPSIS


chkdupexe

DESCRIPTION

chkdupexe will scan many standard directories that hold executable, and report duplicates.

AUTHOR

Nicolai Langfeldt

BUGS

Requires GNU ls(1).

Search paths that point to the same directory will cause many bogus duplicates to be found. You might want to edit the script to eliminate some paths that are equivalent on your machine.

11 March 1995

chmod

chmod—Change the access permissions of files

SYNOPSIS

chmod [_Rcfv] [—recursive] [—changes] [—silent] [—quiet] [—verbose] [—help]

[—version] mode file...

Page 62

DESCIRIPTION

This manual page documents the GNU version of chmod. chmod changes the permissions of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new permissions.

The format of a symbolic mode is [ugoa...][[+-=][rwxXstugo...]...][,...]. Multiple symbolic operations can be given, separated by commas.

A combination of the letters ugoa controls which users' access to the file will be changed: the user who owns it (u), other users in the file's group (g), other users not in the file's group (o), or all users (a). If none of these are given, the effect is as if a were given, but bits that are set in the umask are not affected.

The operator + causes the permissions selected to be added to the existing permissions of each file; - causes them to be removed; and = causes them to be the only permissions that the file has.

The letters rwxXstugo select the new permissions for the affected users: read (r), write (w), execute (or access for directories) (x), execute only if the file is a directory or already has execute permission for some user (X), set user or group ID on execution (s), save program text on swap device (t), the permissions that the user who owns the file currently has for it (u), the permissions that other users in the file's group have for it (g), and the permissions that other users not in the file's group have for it (o).

A numeric mode is from one to four octal digits (0_7), derived by adding up the bits with values 4, 2, and 1. Any omitted digits are assumed to be leading zeros. The first digit selects the set user ID (4) and set group ID (2) and save text image (1) attributes. The second digit selects permissions for the user who owns the file: read (4), write (2), and execute (1); the third selects permissions for other users in the file's group, with the same values; and the fourth for other users not in the file's group, with the same values.

chmod never changes the permissions of symbolic links; the chmod system call cannot change their permissions. This is not a problem since the permissions of symbolic links are never used. However, for each symbolic link listed on the command line, chmod changes the permissions of the pointed-to file. In contrast, chmod ignores symbolic links encountered during recursive directory traversals.

OPTIONS

_c, —changes Verbosely describe only files whose permissions actually change.
_f, —silent, —quiet Do not print error messages about files whose permissions cannot be changed.
_v, —verbose Verbosely describe changed permissions.
_R, —recursive Recursively change permissions of directories and their contents.
—help Print a usage message on standard output and exit successfully.
—version Print version information on standard output, then exit successfully.

GNU File Utilities

chown

chown—Change the user and group ownership of files

SYNOPSIS


chown [_Rcfv] [—recursive] [—changes] [—help] [—version] [—silent] [—quiet]

[—verbose] [user][:.][group] file...

Previous | Table of Contents | Next