Dne 21.7.2014 17:07, John Hardin napsal(a):
On Mon, 21 Jul 2014, Jan Hejl wrote:

The other daemon is the biggest evil ever. Proprietary software which cannot run under different user because it's hardcoded :(

The user name may be hardcoded but the user ID can't be. You could potentially edit /etc/passwd and set the user ID for the proprietary software's user to the same user ID as the user spamd is running under, and that username becomes an alias.
Great point! That worked. It's so simple that i forgot that it's possible!

Thank you so much!
Jan

Dne 21.7.2014 11:18, Matthias Leisi napsal(a):
 The lesser evil is to start the other daemon as the same user as spamd
 (assuming that the other daemon does not need yet another set of
 permissions which can not be solved through eg simple group
 memberships).

 -- Matthias

 On Mon, Jul 21, 2014 at 11:09 AM, Jan Hejl <[email protected]> wrote:
> That's what I plan to do, but i'd like to ask where to start? By > modifying spamd you mean source code modifications?
> >  Thanks
>  Jan
> >  Dne 19.7.2014 15:21, Kevin A. McGrail napsal(a):
> > You will need to modify spamd to us 440 and put both users in the > same group is my best guess.
>  Regards,
>  KAM
> >  Jan Hejl <[email protected]> wrote:
> >  Hello everyone,
> > > > my spamd creates temp files in /tmp with perm 400, it runs under spamd > > user. I would like to give a access to another deamon running under > > different non-root user to these files. Deamon is called through the > > custom plugin from spamd but it can't access file because of specific
> >  permissions. Is it possible?
> > > >  Thanks for help!
> >  Jan



Attachment: smime.p7s
Description: Elektronicky podpis S/MIME

Reply via email to