Thank you all for your answers. I'm still trying to get it work...
Regarding to the questions you made: - OS: RedHat ES4 (SELinux disabled) - Backtrack version: BackupPC-3.2.0beta0.tar.gz - # md5sum BackupPC_Admin.pl 09a57b60d416191c6239a6e7ea08ddc2 BackupPC_Admin.pl - # perl -c BackupPC_Admin.pl Args must match #! line at BackupPC_Admin.pl line 1. - head -1 BackupPC_Admin.pl: the PERL path is correct. Lighttpd is executing as "lighttpd" user and group. I tried to change it to "backuppc" but then I can not run lighttpd (it says FAILED if I try to start it). It doesn't run with root user. drwxr-xr-x 2 root root 4096 Oct 5 18:30 . drwxr-xr-x 4 root root 4096 Oct 5 17:54 .. -r-sr-xr-- 1 backuppc backuppc 3995 Oct 5 17:54 BackupPC_Admin.pl -r-sr-xr-- 1 root root 3995 Oct 10 18:29 b.pl -rwsr-xr-- 1 root root 3993 Oct 2 14:10 sample2.pl -rw-r--r-- 1 root root 116 Oct 2 14:09 sample.pl Eventually I changed the file owner to backuppc but it didn't work either. And don't fully understand why I can run sample.pl but not BackupPC_Admin.pl. Lack of knowledge, I guess. Thank you so much. Laura. > I can also run "sample.pl" and "sample2.pl" with no problems. It doesn't > work either if the owner is "root". > If lighttpd were running as user root, it could access BackupPC_Admin.pl no matter who it belongs to. I'd guess it's the group membership that makes the difference. All of that said, it could probably be a completely different problem, but the error message points in this direction (presuming "access()" refers to the system call). If it's not permissions (which you could fix by either 'chmod a+x BackupPC_Admin.pl' or 'chgrp root BackupPC_Admin.pl' or even adding the user lighttpd is running as to the group backuppc in /etc/group - depending on which of those fits your taste and security needs best), you could try some other things: - perl -c BackupPC_Admin.pl Is your script garbled in some way that makes it syntactically incorrect or unable to find its library files? You might have to temporarily remove the setuid bit from the permissions for this test. - Look at the first line of the script ('head -1 BackupPC_Admin.pl'). Is the path to the Perl binary correct? (Don't know if that's relevant for lighttpd.) - Give us more information on your setup (which version of BackupPC, what OS and version, what user is lighttpd running as, where did you install BackupPC to (which paths), is SElinux enabled, output of 'md5sum BackupPC_Admin.pl' ...). But try fixing the permissions first, that seems to be the most likely problem. Regards, Holger[/quote] +---------------------------------------------------------------------- |This was sent by cuentatempo...@wanadoo.es via Backup Central. |Forward SPAM to ab...@backupcentral.com. +---------------------------------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/