jordansissel/fpm — Issue #142: Support setting and RPM's %defattr to something other than root
Author: alexrecarey
Created: 2012-01-11 11:11:09+00:00
State: open

I am building packages with fpm for things like JBoss and other services that should not run as root. fpm sets the %defattr directive in the RPM file to -, root, root, -, effectively setting all files to be owned by root.

I suggest adding a command line option where you could specify `"--rpm-defattr '-, jboss, jboss, -'` to set the file ownership to something safer.

I'm working on a patch but I have very little experience with ruby so it has a good chance of being ugly ;)