monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uid and gid problem


From: Martin Pala
Subject: uid and gid problem
Date: Tue, 05 Aug 2003 20:09:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2

I tried to find some way to solve uid and gid problem to allow its usage as standalone statement in addition to its usage in exec statement. I think the change of the uid and gid ('useroption') will involve too much extra code (present version is very simple and effective, but restricted to predefined usage).

We can keep present simplicity by renaming 'uid' and 'gid' options in exec statements to 'euid' and 'egid' (which is exactly what it in fact is) => 'uid' and 'gid' tokens will be freed for its own statement usage (which again is in fact what it is - real owner and group).

So new statement could seem like:

check file bar with path "/foo/bar
 uid root
 gid wheel
if size was changed then exec "/ab/cd -o option" as euid nobody and egid nobody


What about it?

Martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]