INSTALL

Section: User Commands (1)
Updated: LOCAL
Index Return to Main Contents
 

NAME

install - install programs in (public) directories  

SYNOPSIS

install [ -c ] [ -s ] [ -mmode ] [ -oowner ] [ -ggroup ] file destination  

DESCRIPTION

Install moves or copies a file to a specified destination. If destination is a regular file, it will be removed before file is installed in that name. If destination is a directory, then file will be installed in the directory with the same name. (This may cause problems, e.g., if file is a full pathname.)

A number of options are provided:

-c
The source is copied (with cp(1)) rather than moved (with mv(1)).
-s
The symbol table is removed from the installed program (with strip(1)).
-mmode
The permission bits of the installed program are set to the indicated mode, rather than the default 0755.
-oowner
The specified user is made the owner of the program, rather than the default %OWNER%.
-ggroup
The program is put in the specified group, rather than the default %GROUP%.

Install will only install regular files, and tries not to copy a file onto itself.

The changing of ownerships and file modes is done in the right order so that

install -m 4755 -o root a.out /bin/su
suffices to make a ``setuid root'' program.  

SEE ALSO

chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

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