[CentOS] how to setup account which can 'su" to another account (NON-root)?

Thu Aug 19 19:12:34 UTC 2010
Tom H <tomh0665 at gmail.com>

On Thu, Aug 19, 2010 at 2:47 PM, mcclnx mcc <mcclnx at yahoo.com.tw> wrote:
> Sorry.  following way does NOT work.
> user1 (ALL)=user2 /bin/bash
> Leave off su entirely and
> sudo -H user2 -i
> as user1

Because you have to run
sudo -i -u user2
as user1