Need help w/ SetUID expect scripts on Solaris 
Author Message
 Need help w/ SetUID expect scripts on Solaris

Has anyone found a fix or workaround for the setuid problem w/ Expect on
Solaris 2.x? When I run a script that is owned by someone else, and has the
UID bit set in it's permissions, expect crashes when spawn is called, with
this message:

 open(slave pty): Bad file number

Note, if the script is owned by root, this doesn't happen, even if it is
setuid. But if it's owned by anyone else (other than the user that is running
it), it happens.

These are the permissions for the script that produces the above problem:

 $ ls -l tn1
 -rwsr-xr-x   1 fred             38 Jan 30 18:14 tn1
    ^

When anyone other than fred (even root) calls tn1, it dies.

-Avram



Fri, 11 Aug 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Setuid expect scripts on Solaris

2. help: expect script with setuid

3. problem with expect & setuid script

4. Expect and setuid scripts

5. Need help - expect script: Copy a file from tftp server to cisco router flash

6. Need help with Expect script

7. Need help with an ftp Expect script

8. Need urgent help in Expect scripting

9. Help needed with an expect script

10. Expect script fails on redhat but not Solaris

11. Expect 5.25 on solaris sparc 2.6 (hangup on script)

12. expect script fails in Solaris 2.4

 

 
Powered by phpBB® Forum Software