Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!think!husc6!rutgers!umn-d-ub!umn-cs!hall!blu From: blu@hall.cray.com (Brian Utterback) Newsgroups: comp.unix.questions Subject: Re: Fun with ignoreeof Message-ID: <3615@hall.cray.com> Date: 29 Jan 88 18:08:57 GMT References: <2248@tekcrl.TEK.COM> <410@lakesys.UUCP> <584@cresswell.quintus.UUCP> <240@aiva.ed.ac.uk> Reply-To: blu@hall.UUCP (Brian Utterback) Organization: Cray Research, Inc., Mendota Heights, MN Lines: 35 In article <240@aiva.ed.ac.uk> richard@uk.ac.ed.aiva (Richard Tobin) writes: >In article <584@cresswell.quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: >>The command >> /bin/kill -HUP $$ >>is immune to aliases, and even > >I'm afraid not. At least not in Sun 3.2, or BSD 4.2 and 4.3: >skye% alias /bin/kill 'echo hi' >skye% /bin/kill -HUP $$ >hi -HUP 2060 >Richard Tobin, JANET: R.Tobin@uk.ac.ed Okay, we now see that you can alias '/bin/kill','alias', and 'unalias'. However, you can't take it away entirely. For instance, what about: /bin/../bin/kill or /bin/../bin/../bin/kill ? Can't make an alias for all of them. And, don't forget, you will also have to alias csh, sh, etc. Otherwise you could just fork a shell and eliminate all the aliases. Probably all the other utilities that exec things as well. What can I say? Give it up, it's a lost cause. If you want to make sure you can't get out, you may need to do something like cd / su <