On Thu, Jan 29, 2009 at 01:59:55PM +0100, Alexander Hall wrote: > Lars Noodin wrote: > >I have a bunch of processes that I wish to kill, but which have the same > >name and owner as process I wish to leave running. > >ps, pgrep and pkill can select based on a process' gid or egid. > > > >How can gid or egid be set when starting a process from shell? > > sudo(8)? >
chroot might be easier: # chroot -g nobody,wsrc -u bin / /usr/bin/id uid=3(bin) gid=32767(nobody) groups=32767(nobody), 9(wsrc) -- Janusz Gumkowski http://www.am.torun.pl/~ja