[Freeswitch-users] how to solve command
Steven Ayre
steveayre at gmail.com
Mon Jan 15 20:48:50 UTC 2018
The sudo command runs 'echo' as root but the '>' redirection happens in
your shell as your normal user.
Try this instead:
echo "deb http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/ xenial
main" | sudo tee /etc/apt/sources.list.d/freeswitch.list
tee will send the line to both stdout and the file, and since it's run as
root will overwrite the file with permission to do so.
On 13 January 2018 at 15:34, Ali Haider <alihaider.4189 at gmail.com> wrote:
> hiii
> how to solve
> sudo echo "deb http://files.freeswitch.org/
> repo/ubuntu-1604/freeswitch-1.6/ xenial main" > /etc/apt/sources.list.d/
> freeswitch.list
> bash: /etc/apt/sources.list.d/freeswitch.list: Permission denied
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180115/49a1b0d9/attachment.html>
More information about the FreeSWITCH-users
mailing list