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

Re: How make my ROP for use dpkg ?



* Alexander:

> I make rop (suid root) for packing to .deb my programs.
> But see system rights problems when try run dpkg.
>
> As resolve in Debian this problem ?
>
> Rop very just:
>
> program rop;
> uses Unix;
> begin
> if ParamCount < 1 then Halt;
> fpSystem(ParamStr(1));
> end.
>
> If I run rop whoami then result "root".
> If I run rop dpkg -i myprogram.deb then result rights error.
>
> How to provide rop with all necessary rights? Need more than set
> uid/gid root ?

I expect you need to change the real user ID to 0, using setuid.  SUID
only changes the effective user ID.  whoami reports the effective user
ID, which is why it still shows root.


Reply to: