View Single Post
Posts: 32 | Thanked: 4 times | Joined on Jul 2007
#1
Just a quick question to those of you who understand how the debian packaging system works (sorry, I'm normally a Java and .NET programmer, and deal typically with windows installs for work).

What would be the apropriate way to chown / chgrp / chmod a file that is being installed?

For example, I want my program to run on a config file located in the users home dir. Lets call it:
~/.myConfig

Currently, this file ends up in the correct location (/home/user/.myConfig) but is owned by root. How do I, at install time, chown it to 'user', chgrp it to 'users' (or the curent user/group, really) and possibly chmod it?

Thanks for any advice!
 

The Following User Says Thank You to rally25rs For This Useful Post: