On Sat, Apr 14, 2001 at 08:50:43AM +0100, derekfountain@yahoo.co.uk wrote:
There must be a simple answer to this one, but I can't think of it...
When the machine boots up I want to start a program a twice - two instances of the same program, each running as a different user. These processes need to be running before anyone logs in, so I can just start them in the background from boot.local. The thing is, anything started from boot.local is obviously run as root.
How do I set those processes running as owned by different users?
man su: Example 3: Executing command with user bin's Environment and Permissions To execute command with the temporary environment and per- missions of user bin, type: example% su - bin -c "command args" -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk