Operating System - HP-UX
1833053 Members
2802 Online
110049 Solutions
New Discussion

Re: sudo with saproot.sh script

 
Thomas Heitzmann
New Member

sudo with saproot.sh script

I want to use sudo to allow adm-user to run SAP configuration-script saproot.sh with root-permissions, but i get some error messages like this:

saproot.sh[67]: : Cannot access parent directories
saproot.sh[79]: tr: Execute permission denied.
saproot.sh[98]: uname: Execute permission denied.
saproot.sh[109]: whoami: Execute permission denied.
saproot.sh[109]: test: Specify a parameter with this command.

What's the problem?

Please help!
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: sudo with saproot.sh script

The user does not have permissions to execute the commands tr,uname,whoami.

Also the user has no permissions to change to the directory /saposco


Thomas Heitzmann
New Member

Re: sudo with saproot.sh script

I don't think the permissions of the commands tr, uname, whoami are the problem, because all users can execute them:

-r-xr-xr-x 1 bin bin 63980 Sep 4 2003 /usr/bin/tr
-r-xr-xr-x 1 bin bin 18908 Aug 27 2004 /usr/bin/uname
-r-xr-xr-x 1 bin bin 9124 Sep 4 2003 /usr/bin/whoami
Thomas Heitzmann
New Member

Re: sudo with saproot.sh script

Problem is solved, there was an bad order for command-alias with NOEXEC attribute in /etc/sudoers file!
Thomas Heitzmann
New Member

Re: sudo with saproot.sh script

Problem is solved, there was an bad order for command-alias with NOEXEC attribute in /etc/sudoers file!