Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user sudo fails ("Sorry, user temp1 is not allowed to execute")

Status
Not open for further replies.

jlaw10

Technical User
Jul 28, 2005
54
US
I am receiving the following errors when attempting to setup sudo from user A (temp1) to user B (oracle):

Sorry, user temp1 is not allowed to execute '/bin/su - oracle' as root host1

This happens with the following sudoers entry:

temp1 ALL=(oracle) NOPASSWD:ALL

This works only when I change sudoers to following:

temp1 ALL=ALL NOPASSWD:ALL

But this would be a security threat because this user can then access all accounts even root. I wonder if pam or anything is causing this?
 
Sorry, user temp1 is not allowed to execute '/bin/su - oracle' as root host1"


The error message appears to indicate that temp1 is attempting to execute things as root and not as oracle. So the question is are you typing: su oracle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top