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, 9:55 pm
Newsgroups: comp.unix.sco.misc
From: "Brian K. White" <br...@aljex.com>
Date: 19 Jul 2005 21:55:05 -0400
Local: Tues, Jul 19 2005 9:55 pm
Subject: Re: asroot and kill
----- Original Message -----
From: <tyler.st...@gmail.com>

Newsgroups: comp.unix.sco.misc
To: <dis...@jpr.com>
Sent: Tuesday, July 19, 2005 8:12 PM
Subject: asroot and kill

> Hey there!  Teensie bit of help wanted...I am trying to assign a user
> the privilege to kill processes.  Unfortunately, I am not able to find
> such in the scoadmin utility (OpenServer 5).  Using asroot gets me
> "Sorry, not authorized to run kill."  I am not hugely familiar with
> this flavour of UNIX, and aren't able to really find useful help via
> Google.  Can someone please point me in the right direction?

> Thanks!
>  Tyler (tyler AT kinotox DOT com dot garbagetofoolspambots)

Did you man asroot?
It requires a few not obvious steps to set up a given command to be useable
by asroot and then allow a given user to use that command, but they are
described in man asroot pretty clearly.

I boiled the man page down to these 4 lines of shell script,
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

now you can go into scoadmin account manager,
  highlight a user
  tab up to the users menu
  authorizations
  unselect "use system default..."
  on the right-hand side scroll all the way down and and hit Enter on kill
  tab to the ok button and save & get out

and now that user can run "/tcb/bin/asroot kill 23874"

/tcb/bin is not in users PATH by default. It is in roots path by default.
You could deal with the path a few ways. It's probably better to make a
symlink of asroot into /usr/bin or somewhere or just use the full path in
commands like above rather than add /tcb/bin to users PATH's since there is
other stuff in /tcb that's best left root only.

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