3

sudo running as root instead of specified user

view full story
linux-howto

http://forums.fedoraforum.org – Hi, I am new to this forum; and I have a weird question about the sudoers file. Currently, I am running "Red Hat Enterprise Linux ES release 4 (Nahant Update 8)". I edited the sudoers file (via visudo) and added the following: User_Alias RPTS2 = vtmtest RPTS2 xxxxx = (jboss) /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh The user (vtmtest) issues the following command sudo /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh and gets this message: Sorry, user vtmtest is not allowed to execute '/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh' as root on xxxxx When I look at the log, I see the following: Jan 25 14:17:57 xxxxx sudo: vtmtest : command not allowed ; TTY=pts/12 ; PWD=/export/home/vtmtest ; USER=root ; COMMAND=/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh 1. Why does sudo try to run as the root user, when I have specified in the command to run as jboss? 2. Do I need to specify anything else so that this command can run as the "jboss" user and not "root"? Thanks for any information that can be provided. (HowTos)