Re: [Linux-decnet-user] default_device won't alter
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: J M <joh...@ya...> - 2003-03-24 22:13:46
|
--- Ben Armstrong <be...@bg...> wrote: > On Mon, 2003-03-24 at 17:00, J M wrote: > > Thanks for the help, but I cannot edit the file. > This > > is why the echo -n won't work. This is the whole > > reason for writing to the group, because the > online > > docs say to use echo, > > The docs are correct. That is how it works. > > > but one cannot edit /proc files, > > What leads you to believe this is true? > > > so it makes no sense and there is no sysctl > variable > > to change. > > We are obviously missing some part of your problem. > Are you trying to > change the default device as root or as an ordinary > user? Observe: > > $ ls -l /proc/sys/net/decnet/ > total 0 > dr-xr-xr-x 7 root root 0 Mar 24 > 17:33 conf > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 debug > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 default_device > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 di_count > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 dn_count > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 dr_count > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 dst_gc_interval > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 no_fc_max_cwnd > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 node_address > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 node_name > -rw-r--r-- 1 root root 0 Mar 24 > 17:33 time_wait > $ echo -n "eth0" > > /proc/sys/net/decnet/default_device > bash: /proc/sys/net/decnet/default_device: > Permission denied > $ su - > # echo -n "eth0" > > /proc/sys/net/decnet/default_device > # cat /proc/sys/net/decnet/default_device > eth0 > > Or perhaps the problem is that you're attempting to > edit with a text > editor? You can't do that with /proc because it > isn't populated with > static files -- all of the content is dynamically > generated by procfs. > However, cat and echo will work for reading/writing > in /proc, provided > your owner/permissions line up with the resource > you're trying to read > or modify. > > Ben Thank you for your response. Here is the directory: -rw-r--r-- 1 root root 0 Mar 24 17:22 debug -rw-r--r-- 1 root root 0 Mar 24 17:22 default_device -rw-r--r-- 1 root root 0 Mar 24 17:22 di_count -rw-r--r-- 1 root root 0 Mar 24 17:22 dn_count -rw-r--r-- 1 root root 0 Mar 24 17:22 dr_count -rw-r--r-- 1 root root 0 Mar 24 17:22 dst_gc_interval -rw-r--r-- 1 root root 0 Mar 24 17:22 node_address -rw-r--r-- 1 root root 0 Mar 24 17:22 node_name -rw-r--r-- 1 root root 0 Mar 24 17:22 time_wait All of them have rw for root, and I am the root user. For whatever reason, the simple echo -n > default_device will not populate. I cannot change it. Everything else I can - just not default_device. I have no idea why. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |