[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setgid stuff

peter karlsson:

> Should the scripts automatically create a group (say 'jwhois', as that's the
> name of the program)? Can this be automated in the rules file?

I did it this way: The postinst script does a 'addgroup --system jwhois',
and manually calles suidregister (or uses chown/chmod) to set the binary
setgid jwhois and the diretory writeable for that group. In the postrm, the
group is removed when using 'dpkg --purge', but preserved with 'dpkg

Is this correct behaviour?

peter - http://www.softwolves.pp.se/

Reply to: