>>> Hi everyone,
>>> We have few Sun workstations here and each is assigned to 1 user.
>>> I need to set a lower priority to all other processes which does not
>>> belong to the user.
>>> For eg, user A is assigned to SunA workstation and user B is assigned to
>>> SunB workstation.
>>> If user B runs any process on SunA, then his processes must be set to a
>>> lower priority automatically.
>>> I do not want to use renice command to lower the priority every time a
>>> user complains.
>> Nothing clever leaps to mind, so why not have cron run a script
>> which renices anything run by "wrong" users (apart from system
>> users (whose UIDs are < 100 iirc)).
> Might be able to get the Linux pam_limits module to work; it allows
> setting resource limits and priority on a per-user, per-system basis.
> Warning: it has had some bugs in the past; I haven't read enough to
> know whether all the known ones have been fixed yet.
FYI, pam_limits as is doesn't compile on Solaris, but it doesn't take
much to make it happen; I sent the originator a patch. Some of the
rlimits on Linux don't exist on Solaris, but priority and other non-rlimit
stuff, as well as rlimits present on Solaris, should be ok, although I've
only tried priority. core file limits, and limits on maximum login sessions
per user so far.
--