On Sun, 23 Aug 2009 16:19:14 +0200
meino.cra...@gmx.de wrote:

> This will give the whole 'capture-comand# the rights of root, which
> I want to prevent (see my posting). Instead I want to give it only
> higher priorities for I/O-usage and CPU-usage. It should still act
> with user rights for all other puposes.
> But thank you for your help anyway.

Ah, sorry, must've missed that part.
How about this:

  #!/bin/sh
  exec nice -n -10 ionice -c 1 sudo -u user capture-command

(with the same initial sudo-invocation)

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

Reply via email to