Re: sudo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



centos@xxxxxxxxxxxxxx a écrit :
> Hi
>
> Biz_User needs to switch to Sales_User, and  I tried following in
> sudoers:
> Biz_User ALL=(Sales_User) ALL
>
> but I get following error when I run sudo su - Sales_User
>
> "Sorry, user Biz_User is not allowed to execute '/usr/bin/su -
> Sales_User'
> as root on Server_Name"


$ man sudo
...
           When - is used, it must be specified as the last su option.
The other forms (-l and --login) do not have this
           restriction.

>
> I know that if I add root in allowed users list, I can switch
> to other user , but in that way user can switch to root as well.
>
> %Biz_Users ALL=(Sales_User,root) ALL
>
> any better idea ?

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux