http://defect.opensolaris.org/bz/show_bug.cgi?id=10087





--- Comment #4 from Anurag S. Maskey <Anurag.Maskey at Sun.COM>  2009-07-17 
06:58:16 ---
Are you able to run the scripts if you "su" to the netadm user?  Loooking at
ctrun(1), the return value of 126 means "command was found but could not be
invoked".

Some manual testing on the shell leads me to believe that the script does not
have executable permissions.

bash-3.2# cat /tmp/foo
#!/bin/sh
echo $1 > tempfile

bash-3.2# ls -l /tmp/foo
-rw-r--r--   1 root     root          29 Jul 17 13:53 /tmp/foo

bash-3.2# /usr/bin/ctrun /tmp/foo
ctrun: exec failed: Permission denied

bash-3.2# echo $?
126

The script names (tmp.qRaUVk, tmp.w7WeGl, etc.) lead me to believe that you are
creating this scripts in /tmp on the fly.  What are the permissions on those
files?

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to