Notes |
|
(0006184)
|
bonivart
|
2009-05-23 12:25
|
|
Also the permissions are from umask, not from .CSW file. |
|
|
(0006185)
|
bonivart
|
2009-05-23 12:26
|
|
Phil is looking into this, I'm pretty sure it concerns cswcpsampleconf as well. |
|
|
(0006216)
|
bonivart
|
2009-05-28 15:25
|
|
The problem is that the copy operation occurs before proper ownership/permissions are set (verification stage for each class), thus even a preserve copy only yields a file with default ownership/permissions.
One possible solution (not verified) is to locate the pkgmap during install and grep it for the correct ownership/permissions and apply them to the copy. |
|
|
(0006376)
|
bonivart
|
2009-07-01 16:47
|
|
Patch for cswcpsampleconf:
--- i.cswcpsampleconf.090701 Wed Jul 1 13:59:09 2009
+++ i.cswcpsampleconf Wed Jul 1 16:47:10 2009
@@ -31,7 +31,13 @@
echo $confdest already exists. Not overwriting
else
echo Copying sample config to $confdest
- cp -p $dest $confdest
+ contents=`grep "^$dest" /var/sadm/install/contents`
+ mode=`echo $contents | awk '{print $4}'`
+ user=`echo $contents | awk '{print $5}'`
+ group=`echo $contents | awk '{print $6}'`
+ cp $dest $confdest
+ chmod $mode $confdest
+ chown $user:$group $confdest
fi
done |
|
|
(0006380)
|
bonivart
|
2009-07-02 14:36
|
|
|
|
(0006398)
|
bonivart
|
2009-07-05 21:13
|
|
No response...I will install nagios myself and it sets ownership/permissions correctly I will release 1.17. |
|
|
(0006401)
|
ja
|
2009-07-06 12:09
|
|
Sorry for the late feedback. Works great! I tested it with Nagios and another package, which is still under development and not published. |
|
|
(0006402)
|
bonivart
|
2009-07-06 14:46
|
|
|
|
(0006403)
|
bonivart
|
2009-07-06 15:22
|
|
cswclassutils 1.17 released which fixes the issue in both cpsampleconf and preserveconf. |
|