Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2015-05-09 Thread deoren
On 5/9/2015 9:26 AM, Kim Alvefur wrote:
> Hi!
> 
> Old thread alert!
> 
> 
> On 2014-06-26 03:30, deoren wrote:
>> Link to bug report if anyone is interested:
>>
>> https://code.google.com/p/lxmppd/issues/detail?id=423
> 
> I think you can solve this by running
> 
> dpkg-statoverride --add syslog adm 750 /var/log/prosody
> 
> You might also need to edit the logrotate config, if you have not done
> that already.
> 


Hi Kim,

Thanks for the reply (old or not, replies to my posts are appreciated).
I ended up modifying my rsyslog setup to send log messages to files
outside of /var/log/prosody due to how upgrades were handled. The issue
was that rsyslog didn't have access to the files inside of /var/log/prosody.

Since then I've learned of POSIX ACLs and might give that a try sometime
to see if it's a better solution. Inertia is working against me though
(other tasks are consuming my attention now). ;)

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2015-05-09 Thread Kim Alvefur
Hi!

Old thread alert!


On 2014-06-26 03:30, deoren wrote:
> Link to bug report if anyone is interested:
> 
> https://code.google.com/p/lxmppd/issues/detail?id=423

I think you can solve this by running

dpkg-statoverride --add syslog adm 750 /var/log/prosody

You might also need to edit the logrotate config, if you have not done
that already.

-- 
Kim "Zash" Alvefur

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-25 Thread deoren

On 2014-06-24 23:52, Sergei Golovan wrote:
If you look into the postinstall script inside the package you find 
that the /var/log/prosody (and some other directories) permissions are 
reset on upgrade unconditionally. So, I'm afraid you can't do much.


On 2014-06-25 20:21, deoren wrote:
Thanks for the feedback, I'll submit a bug report. In the meantime I'll 
reset permissions manually after installing updates.


Link to bug report if anyone is interested:

https://code.google.com/p/lxmppd/issues/detail?id=423

--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-25 Thread deoren

On 2014-06-24 23:52, Sergei Golovan wrote:
If you look into the postinstall script inside the package you find 
that the /var/log/prosody (and some other directories) permissions are 
reset on upgrade unconditionally. So, I'm afraid you can't do much.


Thanks for the feedback, I'll submit a bug report. In the meantime I'll 
reset permissions manually after installing updates.


--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-24 Thread Sergei Golovan
Hi deoren,

On Wed, Jun 25, 2014 at 6:46 AM, deoren  wrote:
> by prosody.im. I have this apt entry:
>
> deb http://packages.prosody.im/debian precise main

If you look into the postinstall script inside the package you find
that the /var/log/prosody (and some other directories) permissions are
reset on upgrade unconditionally. So, I'm afraid you can't do much.

In the stock Debian or Ubuntu package (which is older than 0.10
though) you could change the ownership and permissions and use
dpkg-statoverride to preserve them during upgrades.

Cheers!
-- 
Sergei Golovan

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-24 Thread deoren



On 2014-06-24 01:07, Sergei Golovan wrote:

Which operating system do you have and how did you install Prosody?


Hi Sergei,

Thanks for the reply. Sorry, I should have included that with my 
original email. I'm running Ubuntu 12.04 LTS with the Debian/Ubuntu 
package provided by prosody.im. I have this apt entry:


deb http://packages.prosody.im/debian precise main

which was provided from this location:

https://prosody.im/download/package_repository

I'm currently running the latest prosody-0.10 update. Please let me know 
if I can provide any further information and I'll be glad to do so.


Thanks!

--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-24 Thread Sergei Golovan
Hi deoren.

On Tue, Jun 24, 2014 at 5:37 AM, deoren  wrote:
>
> When a package update was applied the permissions were reset to the default
> (which I think was prosody:prosody). Aside from adding the syslog user to

Which operating system do you have and how did you install Prosody?

Cheers!
-- 
Sergei Golovan

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.


Re: [prosody-dev] Upgrades reset ownership on /var/log/prosody directory

2014-06-23 Thread Vadim A. Misbakh-Soloviov
> When a package update was applied the permissions were reset to the
> default (which I think was prosody:prosody). Aside from adding the
> <...> 
> Thoughts?

I bet, it is distro-related issue. Not Prosody's one.

-- 
Best regsrds,
mva


signature.asc
Description: This is a digitally signed message part.