[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem in changing permissions for a directory



Dear Arghya,

those are virtual directories, which don't really exist on the hard disk.
They're just simulated by the Linux kernel, and it wouldn't make a whole
lot of sense to change their permissions.  Actually, if you could change
permissions under /proc, chances are you might break something ;-)

You can write to the file ip_forward just fine, you don't need to
change the permissions.  Just be sure to be root, and then do

    echo 1 >/proc/sys/net/ipv4/ip_forward

Or, if you don't have a superuser account, just sudo, then you do

    sudo bash -c "echo 1 >/proc/sys/net/ipv4/ip_forward"

Hope this helps!

Cheers
  Sebastian

On Thu, Apr 30, 2015 at 07:34:27PM +0530, Arghya Das wrote:
> why cant i change values of this file : /proc/sys/net/ipv4/ip_forward
> 
>  I tried to change ownership of the directory but :
> 
> my_username@019:~$ sudo chown my_username /proc/sys/net/ipv4/
> chown: changing ownership of `/proc/sys/net/ipv4/': Operation not permitted
> 
> Can someone help to solve the problem plz..


-- 
Best regards,               | Theoretische Physik 1
  Sebastian Kapfer          | FAU Erlangen
                            | Staudtstr. 7, 91058 Erlangen
                            | Phone: +49.160.9577.6436


Reply to: