Hi, Im trying to make some handy perl scripts to add/remove pop boxes. I can get the script to make the necessary directories, update the mysql database, and also modify the 'hosteddomains' file.
My problem comes when I try to call 'makeacceptmailfor' to create the .dat files. If I run the scripts as root, they work fine, but if I try to suid the scripts, with owner 'mail_adm', it barfs when trying to make the new .dat file. Originally, my problem was that the program wouldn't make the .tmp file, even though the directory permissions were okay. So, I now initialise the .tmp file in my perl script before calling 'makeacceptmailfor'. Now, the new file is created correctly, but it barfs when trying to do a rename operation - I assume to replace the .dat file. After a bit of snooping, I tracked down the actual file updates to 'makedatprog' - does this have some kind of security checks to stop usage within a suid environment? Or, does anyone have any work-arounds? Bry. _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
