FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 05-26-2008, 11:56 AM
Default problem ith logcheck


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 >

(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"

--> there is nothing

# www-data@host:~/usr/sbin/logcheck -o > /var/log/logcheck

--> There is nothing

# root:~#su -s /bin/bash -c "/usr/sbin/logcheck -o > /var/log/logcheck"

--> I have the resultat in my file /var/log/logcheck.


My permissions are :

-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

-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.

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 12:02 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org