[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-admin
Subject: [HPADM] : SUMMARY]set the root euid via "at" command
From: Jean Borowczyk <jborowczyk () auchan ! com>
Date: 2001-02-28 14:44:05
[Download RAW message or body]
Hi admins,
Thank's a lot to: Eef Hartman, Thierry ITTY, Matthew Hannigan, Chris
McGee for their help.
My question:
>Hi Admins,
>
>I want to kill, with a user A, processes owned by a user B (not in the
same group as user A).
>To do so, i write a script owned by root with these rights : rws r-s r-x
root sys name_of_the_script.ksh
>So, when user A execute the script, he takes the root euid and can kill
the processes owned by user B (as well as user root do it).
>
>But when i run this script automatically (still with user A) via an "at"
command, this script doesn't work because in this case the root euid is not
set and of course i get a message" permission denied".
>
>Any help will be appreciated.
>Thank's in advance, i will summarize
>
>Jean BOROWCZYK
>
Answers:
Thierry suggested to copy kill command as userkill (for example) in a safety
directory ,change rights on this "new" command (chmod u+s userkill) and use
it in the script.
It woks fine.
Eef, Mattew and Chris suggested to use "sudo" wich is available on this site
: http://www.courtesan.com/sudo/
I'm also trying this second way.
Thank's again to all
Best regards,
Jean
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic