Operating System - HP-UX
1837035 Members
2428 Online
110111 Solutions
New Discussion

Re: Sam - execution permission denied

 
Joyce S. Solomon_1
Occasional Advisor

Sam - execution permission denied

Hi All,

I need some help
At my Hp-Visualize workstation, when i log in as root and try to execute sam at command line, i get "Execution permission denied".
What must i see, check to enable me to get into sam? Please help

Regards
Joyce
8 REPLIES 8
Deepak Extross
Honored Contributor

Re: Sam - execution permission denied

what does
#ll `which sam`
show?

(those are backquotes..the one below the ~)
Michael Tully
Honored Contributor

Re: Sam - execution permission denied

Hi,

There is a front-end to 'sam' called /usr/sbin/sam
If the permissions have been changed you will get this message. I've just tested it, changing the permissions on the file to 444, I get the same error message as yourself. Change the permissions on this file to 555

# chmod 555 /usr/sbin/sam

HTH
-Michael
Anyone for a Mutiny ?
Joyce S. Solomon_1
Occasional Advisor

Re: Sam - execution permission denied

hi,

the output for which sam is as below

no sam in /usr/bin /usr/ccs/bin /usr/contrib/bin /opt/nettladm/bin /opt/fc/bin /
opt/fcms/bin /opt/upgrade/bin /opt/pd/bin /usr/bin/X11 /usr/contrib/bin/X11 /opt
/hparray/bin /opt/resmon/bin /opt/ignite/bin /opt/graphics/phigs/bin /opt/hpnpl/
/bin /usr/lnms/bin /usr/bin /bin /etc

and i have tried to run the chmod command and i still have the same error

regards
Joyce
Deepak Extross
Honored Contributor

Re: Sam - execution permission denied

Try invoking
# /usr/sbin/sam
(with the full path)
Deepak Extross
Honored Contributor

Re: Sam - execution permission denied

Better still, add /usr/sbin to your path
# export PATH=$PATH:/usr/sbin
# sam

Hope this helps.
Michael Tully
Honored Contributor

Re: Sam - execution permission denied

Hi,

Looks like the file could have been removed?

# /usr/sbin/find / -name "sam*" -print

You won't be able to chmod a file if it is
not on the system. If it is missing you will
have to either copy it from another system, or
from backup tape.

-Michael
Anyone for a Mutiny ?
Steven Sim Kok Leong
Honored Contributor

Re: Sam - execution permission denied

Hi,

/usr/sbin/sam is a script that calls samx (full path: /usr/sam/lbin/samx).

Perform this:
# ll /usr/sam/lbin/samx
# ll -d /usr/sam/lbin
# ll -d /usr/sam

You must have execute permissions for /usr/sam/lbin/samx as well as for the parent directories.

If you don't, perform a chmod +x:
# chmod +x /usr/sam
# chmod +x /usr/sam/lbin
# chmod +x /usr/sam/lbin/samx

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Deepak Extross
Honored Contributor

Re: Sam - execution permission denied

Would you be kind enough to share with the forum the resolution of your problem?
Thanks!