strange sudo
Alfred Vahau
Alf.Vahau at upng.ac.pg
Mon Dec 12 00:36:43 UTC 2005
Thanks. It works. Additional typing but not comprising security.
Alfred
Olafur Arason wrote:
>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
>>
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051212/45f5f82a/attachment.html>
More information about the ubuntu-users
mailing list