ip forwarding - permission denied
Cameron Hutchison
camh+ubuntu at xdna.net
Fri Apr 1 06:22:49 UTC 2005
Once upon a time david said...
>
> In my quest for a net connected Zaurus I seem to have hit a problem.
> I need to enable ip forwarding with the following command.
>
> sudo echo 1 > /proc/sys/net/ipv4/ip_forward
>
> But all I get is "permission denied" and I don't understand why. Does
> anyone know what I'm missing here?
The shell is trying to open the file with your permissions before sudo
is even run. You will need to use quotes:
sudo "echo 1 > /proc/sys/net/ipv4/ip_forward"
This way, the redirection will not be done until sudo has run and
changed your permissions.
More information about the ubuntu-users
mailing list