strange sudo

Olafur Arason olafra at gmail.com
Sun Dec 11 23:35:33 UTC 2005


This is a problem with how the shell works, it is translated into:
execute cat with sudo then the out put of that execution is streamed to
file but it is written as the user.

You can use sudo sh -c "the comannd>thefile"

Olafur Arason
2005/12/11, Alfred Vahau <Alf.Vahau at upng.ac.pg>:
> Hi,
> I wanted a scratch file in /usr/local so I issued cat > temp.txt.
> Access was denied. So I had to open a root terminal to create the file.
> sudo normally works for me.
>
> What gives?
>
> Alfred,
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list