[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

SUMMARY: smrsh and forward



Well:
 Just one answer, Bishop (thank you very much), he pointed me to the former 
Listar list, now Ecartis where there has been a big discussion about smrsh, 
but with no success:
Some people where posting the correct sintax for:
/etc/aliases, /etc/smrsh/example_script, /path/final_script
some other said that with that sintax it doesn't work. (that's my case also, 
my sintax is correct but it doesn't work).
Finally I did:
chmod 755 /etc/smrsh/example_script
chmod +s /etc/smrsh/example_script

this /etc/smrsh/example_script looks like:
#!/bin/sh
/path/final_script $@

and:

chmod 755 /path/final_script 
chmod +s /path/final_script 
and it works!!

Adam
----------  Missatge transmhs (original message) ----------

Subject: smrsh and forward
Date: Thu, 21 Mar 2002 14:58:21 +0100
From: Adam Bisbe <bblp@bisbe.net>
To: linuxmanagers@linuxmanagers.org

Hi:

Redhat 7.0 and Sendmail 8.11.0/8.11.0

I am trying to forward mail with an alias.
I have an shell script, I have linked the script in /etc/smrsh
it gives an error in maillog:


www smrsh: uid 8: attempt to use exp.sh
where exp.sh is the script that I want to run.
If I understand how it works, any script that has to be used as a mail
destination has to be in /etc/smrsh and cannot have any redirects in it.
The file has to be owned by root?
Do I have to setiud it?

Thank you
Adam
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe:
 http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

-------------------------------------------------------
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux