Operating System - HP-UX
1838087 Members
3783 Online
110124 Solutions
New Discussion

Re: How to set permission on control_files while building a package

 
RICK TAN JEE HOW_1
Occasional Contributor

How to set permission on control_files while building a package

Hi,

I am building a package using a product specification file (PSF), I have a configure script which basically

cp -p $SW_CONTROL_DIRECTORY/abc /opt/contrib/abc

I have a control_file in the PSF which is
control_file ../opt/contrib/abc

I am wondering how can I set the permissions on the file abc, when I do the swinstall
1 REPLY 1
S.K. Chan
Honored Contributor

Re: How to set permission on control_files while building a package

I hope I understood your question .. you can use the keyword "file_permissions" in your PSF file to set the ownership and permission of the files being packaged. For example ..

file_permissions -m 755 -o root -g bin

..will set perm to 755 (root:bin).