DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

defadm(ADM)


defadm -- display/modify default values

Synopsis

defadm

defadm [filename [name[=value]] [name[=value]] [. . .]]

defadm [-d filename name [name] [. . .]]

Description

The defadm command prints, modifies, adds, or deletes system and command default values contained in the file given by filename; where filename is a file in the /etc/default directory.

If defadm is executed with no arguments, it lists the files in the /etc/default directory.

If defadm is given a filename, it prints all the defaults contained in filename. If one or more names are specified together with a filename, then defadm prints the specified names together with their values.

If defadm is given a filename and one or more names and values, then the default file is modified so that the name is set to the respective value. If the value is an empty string, the name has a null value. When using defadm to display the value of name, if name is not found, a warning message is printed and processing continues.

If defadm is given the -d option, a filename, and one or more names, it removes the specified names from the filename.

Files


/etc/default/*
directory of files containing system or command default values

Diagnostics

The defadm command exits with one of the following values:

0
SUCCESS.

1
UX:defadm: ERROR: invalid option

2
UX:defadm: ERROR: directory /etc/default does not exist

3
UX:defadm: ERROR: cannot access directory /etc/default

4
UX:defadm: ERROR: file filename does not exist

5
UX:defadm: ERROR: cannot access file filename

6
UX:defadm: WARN: name name does not exist

7
UX:defadm: ERROR: file filename is locked, try again later

8
UX:defadm: ERROR: unexpected error

References

cron(ADM), login(C), passwd(C), su(ADM), useradd(ADM), userdel(ADM)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005