-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Scott Leighton wrote:
I'm setting up a SuSE box to run a ton of production jobs. Most are handled via cron, so on those it's simple to specify the user they should run under.
There are a couple of jobs that must be initiated by normal users, but these jobs must run from a special user that has permissions far greater than the normal user.
The jobs are all bash shell scripts, how can I set it up so user A can submit a background shell job under User B?
You could use "sudo" for that. It's pretty powerful and allows normal users to execute commands under a different user ID.
Note: One further complication, I envision user A firing off the job via a web page, probably a perl cgi script that would actually be running as wwwrun on that same box, so user A isn't really logged onto the box.
That should be doable with sudo, too.
Bye,
LenZ
- --
- ------------------------------------------------------------------
Lenz Grimmer