<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Mitra,<br>
I'm not sure if '-H' is the best option for this. If I'm reading the documentation correctly, it sounds like that option only sets the value of $HOME to ~<i>srvusr</i>. You may want to try:<br>
<br>
$ sudo -u <i>srvusr</i> -i <i>/path/to/target_cmd<br>
<br>
</i>That should run the command using a login shell for <i>srvusr</i>, instantiating that user's variables.<br>
<br>
Good luck,<br>
Paul Brennan<br>
<br>
(Apologies if this ends up in the wrong thread or something, I just signed up to this list.)<br>
</div>
</body>
</html>