Default nice values

Larry Cipriani lvc at danews.ATT.COM
Sat Nov 22 08:00:07 AEST 1986


In article <3922 at mit-eddie.MIT.EDU>, jbs at mit-eddie.MIT.EDU (Jeff Siegal) writes:
> I'm using BSD 4.3.  I'd like to set something up so that certain users
> are niced to a given value whenever they login.  If possible, I'd like
> them not to be able to increase their priority, but I could live without
> this.  Any ideas welcome.
> 
> Jeff Siegal

I don't know about BSD 4.3 for certain but in System 5 Release 2
there is an undocumented feature of the login program (at least
in my documentation).  You can change a users nice value with some
special characters in the gecos field of their password entry.

Suppose the login entry is:

	name:password,aging:uid:gid:info:home:shell

changing it to:

	name:password,aging:uid:gid:pri=5 info:home:shell

will make their nice value 25 (higher nice but lower priority).

changing it to:

	name:password,aging:uid:gid:pri=-10 info:home:shell

will make their nice value 1 (lower nice but higher priority).

Some systems set the priority of their uucp logins this way.

This was documented in some older versions of UNIX.  Try it out
in BSD and see if it works.

Larry Cipriani
cbsck!lvc



More information about the Comp.unix.questions mailing list