<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 9:56 AM, mcclnx mcc <span dir="ltr"><<a href="mailto:mcclnx@yahoo.com.tw">mcclnx@yahoo.com.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you for answer. The problem I have is "user1" need "su" privilege. If I grant "su" privilege, it can "su" to anyone. What I want is user1 can ONLY "su" to user2.<br>
<br>
my /etc/sudoers setup:<br>
<br>
# User privilege specification<br>
root ALL=(ALL) ALL<br>
user1 ALL=(root) /bin/su<br>
<br>
<br>
any ideal to fix it?<br>
<br>
<br><br></blockquote><div><br></div><div>Use complete command like this:</div><div>user1 ALL=(root) /bin/su - user2</div><div>This will limit user1 to that specific command. You can add -NOPASSWD and user1 will not have to enter their password.</div>
<div>John</div></div>-- <br> John Kennedy<br><br>