perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Slagle" <marc.sla...@fulkertconsulting.com>
Subject Re: SUID questions...
Date Tue, 13 May 2003 12:22:00 GMT
Instead of creating the directories from the web daemon, you could write to
a database, DB file or files in /tmp.  Then you can have a cron job come and
pick up the requests for new directories and handle it as root.  That way
you dont have to mess with any suid stuff.

If the directories have to be created in real time, you could use some more
invovled trickery like IPC::Shareable to communicate with a perl process
running in the background.  It might be more work, but suid scripts arent my
first pick for security reasons.

Of course, if anybody has a better idea, thats cool.

Marc Slagle

----- Original Message -----
From: "Diego Thomas" <diego@pfcnetwork.com.br>
To: <modperl@perl.apache.org>
Cc: <paulo@pfcnetwork.com.br>
Sent: Tuesday, May 13, 2003 7:57 AM
Subject: SUID questions...


> Hi List :)
>
>     I'm doing a Postfix+LDAP administrator in perl, the beta version is
> everything working, but i have to create some directories for the users
> Maildir.
>     Do someone have a nice example of some suid script that i can
> create/remove dirs and set permissions as root by +s mode?
>
> something like: mkdir /home/vmail/domain/$user/Maildir...
>                        chown postfix.postfix /home/vmail/domain/$user/ -R
>
> and rmdir too for the userdel thing ...
>
>
> ps. i got some .c scripts, but it always dump unsecure erros in error_log.
>
> Thanks!
>
> cya!
>


Mime
View raw message