ulimit (was: getty/login for callback)

Dennis S. Breckenridge root at nebulus.UUCP
Thu Apr 27 10:58:43 AEST 1989


In article <133 at tslanpar.UUCP>, prc at tslanpar.UUCP (prc) writes:
> 
> 
> 
> > It would have been a lot better had the default been "infinity" rather
> > than 1MB; if somebody actually *does* want to limit their program's 
> > disk consumption, they can set a non-infinite ulimit themselves.
> 
> Fortunately (for system administrators), the ulimit size cannot be 
> increased if the effective user id is not super-user. Trying this
> will cause ulimit to fail and leave the value unchanged. Other
> users may only decrease their ulimit size.
> 

In adding more insult to injury I have several questions to ask. 

If you are running Unix/386 3.2.n from AT&T and have the /etc/defaults/login
stuff its easy for a *USER* to get a large ulimit. What about uucico that 
ignores that ulimit? 
  The shell gets passed a variable that tells it what the ulimit should be.
  uucico(1) does not. With a system limit of 1MB that restricts me from 
  creating a file that is larger than 1MB with any program. Uucico gets a
  fail on file write and drops the connection. It then wakes up and says 
  hmm I have this job in the queue, lets send it AGAIN. Try this one kiddies
  only to make mom and dad happy do it long distance. 

Who are you when you are creating a file in /etc?
  The /etc directory is protected 775 with with owner and group sys. How 
  can you the non-sys or root user WRITE into that directory. Lets go back
  to Unix school and re-learn Unix administration. 

Who is the adminstrator on your machines?
  Any seasoned Unix hack knows that the ulimit is too small for *NEWER* 
  applications. He will then retune the kernel /etc/master.d/kernel or 
  in the 386 world /etc/conf/cf.d/stune to meet the needs of that particular
  installation. If he does not then get someone that KNOWS UNIX!!!!

In a "hostile" environment tune your ulimit high and then modify the 
/etc/profile to allow "non-hostile" users to access this. The normal users
then get a ulimit 2048. BTW /etc/profile is only used by the shell, so 
uucp (uucico) will be happy -- don't worry :-)



-- 
==============================================================================
"A mind is a terrible thing to       MAIL:   Dennis S. Breckenridge
waste!"                                      206 Poyntz Ave
					     North York, Ontario M2N1J6
					     (416) 733-1696
UUCP: uunet!attcan!nebulus!dennis    ICBM:   79 28 05 W / 43 45 01 N
					     50 megatons should do!
==============================================================================



More information about the Comp.bugs.sys5 mailing list