[NTLUG:Discuss] scripting problem

Fred James fredjame at concentric.net
Sat Mar 1 14:05:57 CST 2003


Fred wrote:

>How do I do this? I can't remember anything anymore
>
>I want to add statements to the rc.local boot script that will start evolution
>owned by user x instead of root. 
>
>I can't remember how to make a script change users during its execution.
>Something about forking a process, but I can't get around the 'forked child
>processes are owned by the parent' crap
>
>This is to automate a box on a Win LAN that, in concert with vncserver, will
>allow anyone on the LAN to log in as user x and pull the mail. It can be done
>with a root login, then su - userx, then start evolution, but I really don't
>wan't everyone into to log in as root. When installed, the box will be off in a
>corner with no monitor, keyboard or mouse.... just an ethernet cable to the
>switch. By doing this, their network will be immune to all M$ email virii.
>
>TIA,
>Fred
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, more
>http://taxes.yahoo.com/
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>
>  
>
Is this what you are looking for?
"su - username -c command string"
(see man su)

-- 
"It's not nice to fool Mother OS." --anonymous





More information about the Discuss mailing list