* [Comm] Скрипты из под постфикса...
@ 2002-09-25 8:33 Cardinal
0 siblings, 0 replies; only message in thread
From: Cardinal @ 2002-09-25 8:33 UTC (permalink / raw)
To: community
Hello community,
Не знаю куда обратиться с данным вопросом, но все же попробую сюда.
Стоит Мастер. В алиасах постфикса на получение почты одним из
пользователем письмо передается перл скрипту.
Но дело в том, что скрипту (так уж надо) нужно очень много прав. В
частности он должен иметь права копировать чужие мэйлбоксы по
сетевым ресурсам и всячески их парсить. Так вот это удается сделать
только в том случае, если на скрипте стоят рутовые права, да еще и
suid.
При этом в скрипте невозможно выполнять ряд необходимых функций
(chmod, chown, copy, unlink). Приходится всячески это дело обходить, при
этом в логах самые различные сообщения. Примеры:
Это использование File::Copy:
Command output: Insecure dependency in open while runnin
g setuid at /usr/lib/perl5/File/Copy.pm line 97.
Это изменение прав:
Command output: Insecure dependency in chown while run
ning setuid at /etc/pl/PagerWork.pl line 190, <GEN2> line 21286.
Запись на сетевой ресурс:
Command output: Cannot open message for writing: No such
file or directory
В связи с чем вопрос: как бы мне все-таки обойти эту проблему? Я
так понимаю все утыкается просто в чрут постфикса?
--
Best regards,
Cardinal mailto:cardinal@tv-inform.spb.ru
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-25 8:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 8:33 [Comm] Скрипты из под постфикса Cardinal
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git