dapper sudo

GĂ©rard BIGOT gerard.bigot at gmail.com
Tue Jul 4 13:16:49 UTC 2006


because you really do 'cat /dev/null' in root. And you try to do
"result of the previous command" > /var/log/apache2/error.log in user
mode. That's wrong for a user.

So do 'sudo -s' to open  a shell as root, and type directly cat
/dev/null >  /var/log/apache2/error.log.

Or you  could create a script with cat /dev/null >  /var/log/apache2/error.log.
And type sudo test.sh

G.



On 7/4/06, boricua <boricua at despiertapr.com> wrote:
> how come dapper does not allow me to do this
>
>  sudo cat /dev/null >  /var/log/apache2/error.log
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list