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

Re: regress as non-root ?



Peter Galbavy <peter@wonderland.org> wrote:

> So, is there any harness in the ports process to say 'do this target as
> nobody' or something similar ?

No.  You'll have to manually do something like this:

EXEC_REGRESS=	bla bla

do-regress:
	@if [ "`id -u`" -eq 0 ]; then \
		su nobody -c "${EXEC_REGRESS}"; \
	else \
		${EXEC_REGRESS}; \
	done

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de