Hello I try to execute logcheck from a php page. So I have create a php page with a button which allow to run logcheck like this : /usr/sbin/logcheck -o > /var/log/logcheck (I want to put the result in a file logcheck, that's why I use the option -o) I have put www-data in the groupe adm : "adduser www-data adm" And after if I run logcheck like this for exemple: --------------------------------------------------------------------- # root:~#"su -s /bin/bash -c "/usr/sbin/logcheck -o > /var/log/logcheck" www-data" --> there is nothing # www-data at host:~/usr/sbin/logcheck -o > /var/log/logcheck --> There is nothing # root:~#su -s /bin/bash -c "/usr/sbin/logcheck -o > /var/log/logcheck" logcheck" --> I have the resultat in my file /var/log/logcheck. ------------------------------------------------------------------------ My permissions are : /var/log/ -rw-r----- 1 root adm 15158507 2008-05-21 17:47 syslog -rw-r----- 1 root adm 156754503 2008-05-21 17:47 user.log -rw-r----- 1 root adm 156259 2008-05-21 17:47 messages -rw-r----- 1 root adm 90975 2008-05-21 17:45 auth.log -rw-r----- 1 root adm 362097 2008-05-21 17:47 daemon.log -rwxrwxrwx 1 root adm 0 2008-05-22 09:24 logcheck /usr/sbin/ -rwxr-xr-x 1 root adm 21409 2007-01-30 07:40 logcheck I don't understand why I don't arrive to execute logcheck from my php page... It's work only in a console when I am root and that I execute : su -s /bin/bash -c "/usr/sbin/logcheck -o > /var/log/logcheck" Can you help me please ? thank you very much.
also sprach mitchou25 at free.fr <mitchou25 at free.fr> [2008.05.26.1419 +0200]:> # root:~#"su -s /bin/bash -c "/usr/sbin/logcheck -o > /var/log/logcheck" > www-data" > > --> there is nothing > > # www-data at host:~/usr/sbin/logcheck -o > /var/log/logcheck > > --> There is nothingwww-data cannot read /etc/logcheck Also, please don't send your messages to multiple mailing lists. -- .''`. martin f. krafft <madduck at debian.org> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems "friendships last when each friend thinks he has a slight superiority over the other." -- honor? de balzac -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature (see http://martin-krafft.net/gpg/) Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20080526/7ea0ceec/attachment.pgp