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

Mark mhullrich at gmail.com
Thu Aug 19 19:04:57 UTC 2010


On Thu, Aug 19, 2010 at 11:47 AM, 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
>

Probably should be 'sudo -H -u user2 -i'

HTH

Mark



More information about the CentOS mailing list