Re: init process & directory
In article <[🔎] 20010113011605.A30091@yakko>, <patd@dahiroc.net> 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 to: