Technical article 125521

I'm having problems getting the the Sendmail restricted shell (smrsh) working.

OpenServer 5.0.7

Written · Last revised

Problem

I'm using the standard SCO supplied sendmail.cf file, but I cannot access the smrsh utility.

Cause

The /usr/lib/sendmail.cf file incorrectly makes reference to /usr/lib/smrsh, rather than the correct /usr/bin/smrsh.

Solution

This has been reported to SCO Engineering.

There are two possible workarounds.
1. Correct the path in the sendmail.cf file
OR

2. Create a symbolic link of /usr/bin/smrsh to the required /usr/lib location as follows:

root# ln -s /usr/bin/smrsh /usr/lib/smrsh
Then restart Sendmail as follows:
root# /etc/rc2.d/P86sendmail stop
root# /etc/rc2.d/P86sendmail start

You should also create the /usr/adm/sm.bin/ directory. This is where 'smrsh' looks for the allowable programs for launch.

SCO welcomes all new Sendmail feature requests.

See also

man smrsh(ADMN)

From the Xinuos technical article database, record 125521. Reproduced with permission. The original is at www.sco.com/ta/125521, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.