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

Re: dh_suidregister -> ?



On Mon, Feb 05, 2001 at 03:58:24PM +0100, peter karlsson wrote:
> Julian Gilbey:
> 
> > But in cases where the only meaningful installation was suid or sgid (for
> > example, /bin/su), the deb always held a suid or sgid binary.
> 
> Hmmm, so my use of suidregister/dpkg-statoverride in the jwhois package
> isn't really a correct implementation? I am creating a group when the
> package is installed to own the shared cache it uses, and setgid the binary
> and the cache directory to that group. I also remove the group on
> de-installation.
> 
> Should I really just chown/chmod the binary and the cache directory in the
> installation scripts, and not call dpkg-statoverride as I do now?

If the binary must be setgid, then you should just chown/chmod the
binary.  If it could be used not-setgid, then use statoverride.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: