DOCUMENT ID:  1261-02

SYNOPSIS:     Finding what package a file is from and default permissions

OS RELEASE:   2.x

PRODUCT:      Solaris 

KEYWORDS:     File Package Permissions Ownership


DESCRIPTION:

This shows a way of finding out the default permissions of a file.  The
file could be anything that was installed as a package or a part of the
OS itself.  This method can also be used if we have to reinstall a
particular package and do not know which one to reinstall. 


SOLUTION:

Everytime a package is installed it updates the file
/var/sadm/install/contents. 

Because all of Solaris is installed using the pkgadd program we will
find information on all OS files in this file. 

As an example if you need to find about "yacc", here are the steps to
follow. 

 # cd /var/sadm/install
 # grep yacc contents
 ...
 /usr/ccs/bin/yacc f none 0555 bin bin 53368 14145 774333593 SUNWbtool
 ...

from the above you can find out that yacc is in /usr/ccs/bin, its
default file permissions are 0555 and its owner and group is bin. 


DATE APPROVED: 02/15/95