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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Normal user to run command as root

Status
Not open for further replies.

adamsd

Technical User
Jul 28, 2002
37
AU
Hello,

We have just migrated from AIX4.3 server to a new AIX5.1 server. A Normal user use to run some scripts as exec.root and exe some root commands. When I copied the scripts across and tried to run them I get no responce. Can some please help me here.

-rwxr-xr-- 1 root staff 3535 Dec 18 19:41 lock.ksh

extract from script
move_userexit ()
{
for INSTANCE_OWNER in db2inst1 db2inst2 db2inst3 db2inst4
do
if [[ -e ~$INSTANCE_OWNER/$USER_EXIT ]]
# If the user exit program exists move it to a temporary name
then
$SCRIPTS_BIN/exec.root mv ~$INSTANCE_OWNER/$USER_EXIT ~$INSTANCE_
OWNER/$USER_EXIT_TMP
fi
if [[ ! -e ~$INSTANCE_OWNER/$USER_EXIT_TMP ]]
then
print "Could not move DB2 user exit programme for $INSTANCE_OWNER"
fi
done
}





 
Hi,

What permissions do you have on exec.root ? If you expect a normal user to execute this script "as" root:
1. file belongs to root and you do a "chmod u+s" on it ...
2. you look at "sudo" command (
 
Thanks, I changed the permission and it works.
Appreciate this very much
Cheers
 
What is the permissions on exec.root that lock.ksh calls. Is exec.root in the right path?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top