[asterisk-users] Group write permissions /etc/asterisk/.
asterisk-list at puzzled.xs4all.nl
Tue Mar 6 16:23:55 CST 2012
On 06-03-12 23:03, Jason Parker wrote:
> It should only set them if the directory does not exist. If it's changing them,
> something is very seriously broken.
An RPM which updates a previous version will change the user/group &
permissions of any existing directory or file as it is instructed to.
I just tested it on CentOS 6 to verify:
1) RPM #1 installs /etc/test and file /etc/test/mytest.txt
user/group = asterisk/asterisk, dir/file perms are 0750/0640
2) manually change user/group/perms of directory/file to
3) RPM #2 updates RPM #1. RPM #2 sets user/group to asterisk/asterisk
and dir/file perms to 0750/0640. So it's back to the original
settings from the spec file.
Not setting user/group ownership and permissions will make rpmbuild use
defaults (iirc root:root for ownership, 755 perms for directories and
644 perms for files).
More information about the asterisk-users