Pfksh question

From: Gabel, Martin (martin.gabel@siemens.com)
Date: Tue Mar 06 2007 - 05:44:13 EST


Hi everyone,

since solaris 10 is not shipped with sudo - and I'm not permitted to
use/install it - a colleague suggested me to use the profile shell =>
psksh.
I simply want to execue a command that touches a new file. This file is
owned by prod-user. Now, I need to execute the binary as a different
user (e.g. user1234) but the newly created file must have the
permissions of prod-user. Despites the fact that this is an rarely used
mechanism, does anyone have some experience with it.
According to the man-page of pfexec I edited the /etc/security/exec_attr
but without any success. I tried the script with/without the pfexec
command, but the resulting file is not correctly created ...
Any help would be highly appreciated !

TIA
Martin
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:43 EDT