Hiten Pandya writes: > hi all, > > correct me if i am wrong.. but.. > do you think, if we denied a shutdown after an su(1) > to root from a non-privileged user would be good... > > i tried this same thing at home.. i builded it and > installed it.. works fine for me... the patch below > will allow a shutdown only be logging into root itself > and not by issuing an su(1) command to root. > > this would be very good, i think if someone broke into > a normal user and was able to gain access into root > using su... (without a password..) > > i am submitting a tar.gz file, which has the patch for > the shutdown.8 manpage, and shutdown.c located at.. > src/sbin/shutdown.c...
I think this idea have no any sence because beeing root you CAN shutdown machine not depending on how you became root. few examples: # kill -USR2 (see init(8) - halt) build fresh shutdown halt -q so ... > thanks... > > > ===== > regards, > Hiten Pandya > <[EMAIL PROTECTED]> > <http://geocities.com/hitmaster2k> > ---------------------------------------------------- > Guys!... stay away from Einstein Junior! > ---------------------------------------------------- > > __________________________________________________ > Do You Yahoo!? > Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 -- TSB Russian Express, Moscow Vladimir B. Grebenschikov, [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message