home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!yale.edu!spool.mu.edu!news.nd.edu!bsu-cs!nosilla
- From: nosilla@bsu-cs.bsu.edu (Lucky Knuckles)
- Newsgroups: comp.unix.misc
- Subject: Being nice(2)
- Message-ID: <3569@bsu-cs.bsu.edu>
- Date: 27 Jan 93 18:25:33 GMT
- Distribution: world
- Organization: Dept. of CS Ball State University Muncie IN
- Lines: 32
-
-
- Here is my situation:
-
- I work on a AT&T SysVR3.2 (v2.11) machine everyday. I am the system
- mangler.
-
- But, normally, I do not run as root (of course). A number of my users use
- up a LOT of CPU time. I do not want to limit them, so I made this program:
-
- main ()
- {
- nice(0);
- setuid(getuid());
- execl("/bin/csh","-csh",0);
- }
- (Please, no flames about programming style, or lack thereof)
- And, this program runs setuid root.
-
- So, when I run it, I am "niced" up, but I don't gain root privs.
-
- Question: Is this cumulative? If I run this over and over,
- will my "niceness" go up? Or am I at max? Or, am I fooling myself?
-
- Reply via EMail, please:
-
- nosilla@bsu-cs.bsu.edu
-
- Thank you.
- --
- Andrew J. Templin, Confused Programmer, Ball State University
- VAX: 00AJTEMPLIN@bsu-ucs.bsu.edu ULTRIX: nosilla@bsu-cs.bsu.edu
- "Ad Meorium Cthulhi Gloriam" "Carpe Carp"
-