Google Groups Home
Help | Sign in
Message from discussion asroot and kill
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Brian K. White  
View profile
 More options Jul 19 2005, 10:08 pm
Newsgroups: comp.unix.sco.misc
From: "Brian K. White" <br...@aljex.com>
Date: 19 Jul 2005 22:08:35 -0400
Local: Tues, Jul 19 2005 10:08 pm
Subject: Re: asroot and kill

> I actually tested this by cutting & pasting the 4 lines all at once and
> pasting it right into a terminal, so the awk command is good. ;)

> cp /bin/kill /tcb/files/rootcmds/kill
> cp /etc/auth/system/authorize /tmp/a
> awk -F : '{if($1=="root") print $0",kill";else print $0}' /tmp/a
> >/etc/auth/system/authorize
> fixmog

The awk line wrapped.
fixmog is the next and last command all by itself
this version should be safe from wrapping and is also cut-pasteable:

cp /bin/kill /tcb/files/rootcmds/kill
cp /etc/auth/system/authorize /tmp/a
awk -F : '{if($1=="root") print $0",kill";else print $0}' \
/tmp/a >/etc/auth/system/authorize
fixmog

Brian K. White  --  br...@aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google