[TUHS] rm command
Noel Chiappa
jnc at mercury.lcs.mit.edu
Sat Apr 28 02:42:12 AEST 2018
> From: Dave Horsfall <dave at horsfall.org>
> I am constantly bemused by the number of "setuid root" commands, when a
> simple "setgid whatever" will achieve the same task.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/sys/ken/sys4.c
/*
* Unlink system call.
*/
unlink()
{ ...
if((ip->i_mode&IFMT)==IFDIR && !suser())
goto out;
For many things, yes. Not in this particular case.
Noel
More information about the TUHS
mailing list