Group: comp.os.linux.security


Subject: Permission denied to root
From: Chris Davies
Date: 9/12/2007 10:03:40 AM
klop <klop@klop.klop> wrote: > I installed a (debian) pkg to supply 'service' in this machine. It is > there, but I cannot use it. Will someone be kind enough to tell me > why root is denied access, or what I need to do to use it, please. I run Debian and I've not used "service" since around RH6 days. I recall, however, that it requires a couple of parameters, for example: service exim4 restart The Debian (and therefore presumably Ubuntu) equivalent is "invoke-rc.d", viz: invoke-rc.d exim4 restart > root@dell:~# service > /usr/bin/service: 5: /etc/init.d/: Permission denied It sounds like this implementation of "service" doesn't check its parameters, and it's simply prefixing the first parameter with the string '/etc/init.d/' before trying to execute the resulting path. Chris