In article <[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
>earlier i inquired about running a process via inittab with an owner
>other than root.  the suggestion of 'su - myuser -c mycommand' did the
>job very well.
>
>i now have a similar question.  i want to run the same process but i
>want the process to think that it's on a different directory.  since
>mycommand reads files in /home/myuser/mydir.

su myuser -c 'cd /home/myuser/mydir && command'

Mike.

Reply via email to