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.

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

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Perfect Security and Absolute Safety are unattainable; beware
  those who would try to sell them to you, regardless of the cost,
  for they are trying to sell you your own slavery.
-----------------------------------------------------------------------
 Today: the 45th anniversary of Man's first steps on the Moon

Reply via email to