On Sat, Apr 17, 2004 at 03:27:53AM -0500, Will Trillich wrote: > other distros have a nice hunk of syntactic sugar (so simple it > could be a shell function -- a separate script file seems like > overkill) called > > service <initscript> <start/stop/restart>
Why not type simply /etc/init.d/<initscript> <start/stop/restart> ? > > which runs /etc/init.d/* scripts. how come woody doesn't have > such a thing by default? i'm wondering if there's a security > issue that isn't obvious to the neophyte...? > > # bash: > function service { > if [ -x /etc/init.d/$1 ]; then > bash /etc/init.d/$* > fi > } > > then it'd be cool to add some "programmable completion" to save a > keystroke or two... > > would this be a bad idea for a superuser shell function? I don't see any advantage. > i can see that a black hat can issue something like > > service bind \; cat /etc/passwd > > but since he's already root, what's the real cost? > Regards -- Joachim Fahnenmüller # Hi! I'm a .signature virus. Copy me into # your ~/.signature to help me spread! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]