CHALL

Section: User Commands (1)
Updated: 09/26/88
Index Return to Main Contents
 

NAME

chall - a replacement for chmod, chgrp, and chmod  

SYNOPSIS

chall [ -o|-u  owner ] [ -g  group ] [ -m  mode ] [ -d directory ] [ -x  challdef ] files ...  

DESCRIPTION

chall is a replacement for the individual commands chmod, chown, and chgrp.

The chall program has the following five options:

-o|-u owner
Specifies the new owner to be applied to the list of files. If owner is not a number (uid), /etc/passwd is searched to translate owner into a uid. Chall also allows the user to specify -u instead of -o if the user is more comfortable with that notation.
-g group
Specifies the new group to be applied to the list of files. If group is not a number (gid), /etc/group is first searched to translate group into a gid. If that fails /etc/passwd is then searched to translate group into a gid.
-m mode
Specifies the new mode to be applied to the list of files. Note that the +x -x +w -w +r -r options of some chmods is not support by chall.
-d directory
directory is prepended to all file names in the file list that do not begin with / (root).
-x challdef
Chall searches the file $HOME/.chall looking for a line which begins with challdef and uses the entries in the rest of the line as the owner, group, and mode to be applied by the Chall program. Options fetched from the $HOME/.chall file are overridden by explict -o, -u, -g, or -m options in the argument line.
 

DIAGNOSTICS

Permissions and access rights are checked at every operation. Any errors will be reported on a per file basis. Chall will make all the changes possible skipping over errors when possible.  

IDENTIFICATION

Author: Brian Litzinger
APT Technology, Inc., San Jose, CA 95030

 

FILES

$HOME/.chall  

ENVIROMENT

HOME  

SEE ALSO

chmod(2), chown(2), chgrp(2)  

NOTES

The $HOME/.chall file is uses the following form, and can be created with any standard text editor:

    challdef:owner:group:mode
An example $HOME/.chall file might be:
root:root:sys:755
bin:bin:bin:555
rootuser:root::
sysgroup::sys:
me:brian::
 

BUGS

The +x -x +w -w +r -r syntax of some chmod commands in not supported by chall.
chall cannot be applied to the executing image of itself as it will get a text file busy error (ETXTBSY) from the operating system.
When using the -d option resultant file names must not exceed 255 characters.


 

Index

NAME
SYNOPSIS
DESCRIPTION
DIAGNOSTICS
IDENTIFICATION
FILES
ENVIROMENT
SEE ALSO
NOTES
BUGS

This document was created by man2html, using the manual pages.
Time: 07:01:29 GMT, December 12, 2024