kernel option errors


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers kernel option errors
# 1  
Old 02-23-2012
kernel option errors

I typed in sysctl -A | grep na

result:
Code:
[snip..]
error: "Success" reading key "dev.parport.parport0.autoprobe"
[snip...]
error: permission denied on key 'net.ipv4.route.flush'
[snip...]

what about these errors?
# 2  
Old 02-23-2012
You have not given us enough information to be able to help you.

For starters, what OS and version are we discussing?
# 3  
Old 02-23-2012
it's an Debian based Ubuntu 10.10 server installation.

I don't understand why there is an 'permission denied' error as I typed this command as root user ('sudo -s' before).
# 4  
Old 02-23-2012
sysctl doesn't have a giant list of everything it's allowed to change in the kernel. All it does is trawl the entire /proc/sys folder looking for things to print.

That item in particular:

Code:
$ ls -l /proc/sys/net/ipv4/route/flush
--w------- 1 root root 0 Feb 23 15:19 /proc/sys/net/ipv4/route/flush

$

...is a write-only option. Not even root can read from it, because the kernel holds no value for it. It's just a special file that you can write to to trigger a route-cache flush.

So when told to "print everything under /proc/sys" it attempts to read it, fails to do so, and warns you. Nothing's wrong.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 02-23-2012
Seems to be one of those bugs that Ubuntu just somehow never got around to fixing:

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/236558

Haven't seen this happen on any other OS except an Ubuntu-based one.
# 6  
Old 02-23-2012
Quote:
Originally Posted by in2nix4life
Seems to be one of those bugs that Ubuntu just somehow never got around to fixing:

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/236558

Haven't seen this happen on any other OS except an Ubuntu-based one.
Even ubuntu's own bug report doesn't agree with your opinion:
Code:
dino99,

I think it does not a kernel bug or an issue. It just doesn't have the read
permission for "sysctl" to read the data from it.
As you can see in the "/proc/sys" directory, not all the files are readable,
some of them are only have write permission. That means you can't read
any data from it and inside kernel source, it doesn't implement the read
function for the file.

% ls -l /proc/sys/kernel/cad_pid /proc/sys/fs/binfmt_misc/register /proc/sys/net/ipv4/route/flush /proc/sys/net/ipv6/route/flush
--w------- 1 root root 0 2010-06-22 09:35 /proc/sys/fs/binfmt_misc/register
-rw------- 1 root root 0 2010-06-25 14:11 /proc/sys/kernel/cad_pid
--w------- 1 root root 0 2010-06-25 14:12 /proc/sys/net/ipv4/route/flush
--w------- 1 root root 0 2010-06-25 14:12 /proc/sys/net/ipv6/route/flush

So, I'm going to close this bug if you can accept my explanation.

It's kernel-specific, not distro-specific.
# 7  
Old 02-24-2012
Quote:
Originally Posted by Corona688
...is a write-only option. Not even root can read from it, because the kernel holds no value for it. It's just a special file that you can write to to trigger a route-cache flush.

So when told to "print everything under /proc/sys" it attempts to read it, fails to do so, and warns you. Nothing's wrong.
Thanks. Which process is looking for this kind of trigger (how often)?

What about the first error message?

error: "Success" reading key "dev.parport.parport0.autoprobe"

this file is set to 444 - there are many more files like this don't producing this error when starting kernel option listing..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unrecognized option: sparc-sun-Solaris2.10/bin/as: unrecognized option `-m32'

Hi, I installed some packages required by an app built with python. But when I try python setup.py install, I get the following error: /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32' Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies

2. UNIX for Dummies Questions & Answers

Invalid option errors running shell script

The script below fails with the following error messages: gzip: invalid option -- 'w' Try `gzip --help' for more information. mysqldump: Got errno 32 on write cp: invalid option -- 'w' Try `cp --help' for more information. rm: invalid option -- 'w' Try `rm --help' for more information. ... (1 Reply)
Discussion started by: ANNACTION
1 Replies

3. Red Hat

kernel errors

Need a help , can anyone please tell what does the following error means I got this error in the messages kernel: php trap divide error ip:7f1b3737edd10c sp:7fffddeecf5e60 error:0 in newrelic-20090626.so Raj (0 Replies)
Discussion started by: rajan007
0 Replies

4. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

5. UNIX for Dummies Questions & Answers

noop option kernel

hi guys I have Suse 10 and Suse 11 and I need to add the option elevator=noop Suse 11 kernel /boot/vmlinuz-2.6.27.29-0.1-pae root=/dev/sda1 resume=/dev/sda2 splash=silent showopts vga=0x32b elevator=noop Suse 10 kernel /boot/vmlinuz-2.6.16.60-0.54.5-smp root=/dev/sda1 vga=0x32b ... (0 Replies)
Discussion started by: kopper
0 Replies

6. UNIX for Dummies Questions & Answers

Custom kernel compiling, won't boot, and errors.

First of all, I'd like to preface this post by relaying that I have considerable experience with FreeBSD but I'm a Linux newb. I've been attempting to compile linux-2.6.29.3 from source and I'm having some problems and have a few newb questions... a) First of all, my kernel won't boot, it fails... (0 Replies)
Discussion started by: urbanriot
0 Replies

7. Shell Programming and Scripting

option followed by : taking next option if argument missing with getopts

Hi all, I am parsing command line options using getopts. The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument. Below is the script: while getopts :hd:t:s:l:p:f: opt do case "$opt" in -h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies

8. UNIX for Dummies Questions & Answers

Major OS errors/Bash errors help!!!!

Hi all, dummy here.... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies

9. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

10. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies
Login or Register to Ask a Question