1834465 Members
2905 Online
110067 Solutions
New Discussion

Re: SAM error

 
Wamaitha
Frequent Advisor

SAM error

I am running 11i and logging on as a user, when i ran sam i get this error "sh: sam: not found." i thoought the change was to be made on /etc/profile but i do not see it. any idead where this change needs to take place??thank you in advance
7 REPLIES 7
Luk Vandenbussche
Honored Contributor

Re: SAM error

Hi,

sam is in /usr/sbin

type /usr/sbin/sam

chech your path with

echo $PATH

Add /usr/sbin to your path in /etc/PATH
Pete Randall
Outstanding Contributor

Re: SAM error

You need to have /usr/sbin in your $PATH. This can be set in /etc/profile or your individual profile. Typically /etc/profile sources /etc/PATH to set the PATH.


Pete

Pete
Kofi ARTHIABAH
Honored Contributor

Re: SAM error

/usr/sbin is usually not in a normal user's PATH, so that is why you got the not found.
Dont you need root access/previlege to run sam by default?
$ /usr/sbin/sam
Sorry, you must have superuser (root) privilege to enter SAM.
nothing wrong with me that a few lines of code cannot fix!
Wamaitha
Frequent Advisor

Re: SAM error

logged in as root i can excute sam, but i need to be allow other users to excute sam, would the changed suggested fix the issue??
thank you
DCE
Honored Contributor

Re: SAM error

You need to set up restricted SAM. As root enter sam -r to enter the configuration menu for allowing other users to access all or part of sam

Robert-Jan Goossens
Honored Contributor

Re: SAM error

add /usr/sbin to the PATH of the user, start sam -r to add tasks to the user.

Best regards,
Robert-Jan
Wamaitha
Frequent Advisor

Re: SAM error

for each user that is having this issue, am i to make the changes and add the /usr/bin/sh??
thank you