/etc/default/kerneloops permission bug?

Asked by Johan Kröckel

Is that a bug or meant to be? If it's meant to be like this: Why?

root@notebook:/etc/default# ls -lah
insgesamt 140K
drwxr-xr-x 2 root root 4,0K 2010-06-10 02:13 .
drwxr-xr-x 142 root root 12K 2010-06-10 02:15 ..
-rw-r--r-- 1 root root 346 2010-01-30 02:35 acpid
-rw-r--r-- 1 root root 4,9K 2010-04-23 14:51 acpi-support
-rw-r--r-- 1 root root 638 2010-06-08 15:33 alsa
-rw-r--r-- 1 root root 239 2010-04-19 10:56 apport
-rw-r--r-- 1 root root 47 2009-09-07 20:58 bootlogd
-rw-r--r-- 1 root root 608 2010-02-17 03:08 brltty
-rw------- 1 root root 384 2010-04-11 21:53 cacerts
-rw-r--r-- 1 root root 1,7K 2010-06-10 02:13 console-setup
-rw-r--r-- 1 root root 469 2010-04-15 01:28 cron
-rw-r--r-- 1 root root 485 2010-03-29 23:28 cryptdisks
-rw-r--r-- 1 root root 122 2010-04-09 17:06 cups
-rw-r--r-- 1 root root 297 2010-03-30 17:05 dbus
-rw-r--r-- 1 root root 92 2009-09-07 20:58 devpts
-rw-r--r-- 1 root root 866 2010-06-08 15:40 grub
-rw-r--r-- 1 root root 86 2009-09-07 20:58 halt
-rw-r--r-- 1 root root 124 2010-06-08 15:33 irqbalance
-rwxr-xr-x 1 root root 84 2010-04-19 11:06 kerneloops
-rw-r--r-- 1 root root 19 2010-06-08 14:38 locale
-rw-r--r-- 1 root root 15 2010-02-03 01:19 ntp
-rw-r--r-- 1 root root 456 2010-02-03 01:19 ntpdate
-rw-r--r-- 1 root root 536 2010-01-26 10:47 openvpn
-rw-r--r-- 1 root root 1,2K 2010-03-27 00:30 pulseaudio
-rw-r--r-- 1 root root 261 2010-06-08 15:40 rcS
-rw-r--r-- 1 root root 1,8K 2010-03-30 11:01 rsync
-rw-r--r-- 1 root root 321 2010-02-24 19:26 rsyslog
-rw-r--r-- 1 root root 146 2010-06-08 15:35 saned
-rw-r--r-- 1 root root 95 2010-04-15 15:03 speech-dispatcher
-rw-r--r-- 1 root root 289 2009-09-07 20:58 tmpfs
-rw-r--r-- 1 root root 1,7K 2010-03-05 20:38 ufw
-rw-r--r-- 1 root root 1,1K 2010-01-26 18:09 useradd

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kerneloops Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

-rwxr-xr-x 1 root root 84 2010-04-19 05:07 /etc/default/kerneloops

I have the same so its normal, not sure where the problem is though. You don't need to be root to view the access / ownerships of files in that folder. Where do you see an issue

Revision history for this message
Johan Kröckel (jnkl) said :
#2

I was just curious why there is just one file out of 40 config-files which is executable.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Not sure personally, i'd just roll with it. Maybe someone can chime in with why its executable.

Revision history for this message
Sam_ (and-sam) said :
#4

-rwxr-xr-x 1 root root 84 2009-11-02 19:19 kerneloops
Content:
# Whether the daemon should be started at boot time.
# Set to 1 to start.
enabled=0

The script is in /etc/init.d
-rwxr-xr-x 1 root root 1,9K 2009-11-02 19:19 kerneloops

e.g. fsck says:
* Starting Kernel Oops catching service kerneloops [Inactive by user preference] [ OK ]

Revision history for this message
Johan Kröckel (jnkl) said :
#5

This does not answer my question. I do understand why /etc/init.d/kerneloops has to be executable, but why is the config file /etc/default/kerneloops executable?

Revision history for this message
Sam_ (and-sam) said :
#6

Usually by opening the textfile it will ask before executing.
Assume the file needs to be executable in order to allow daemon to start if set to 1 and collect info.
To test make it non executable and test what happens.
e.g. set to 1, but make it non executable, boot and review dmesg.
e.g. report a bug against linux package, answer question to upstream to kerneloops.org 'yes'.

btw. daemon file is in /etc/default, config file in /etc.
http://packages.ubuntu.com/lucid/amd64/kerneloops-daemon/filelist
http://packages.ubuntu.com/lucid/utils/kerneloops-daemon
man kerneloops

Can you help with this problem?

Provide an answer of your own, or ask Johan Kröckel for more information if necessary.

To post a message you must log in.