[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.


   * Unlink system call.

  {	...

	if((ip->i_mode&IFMT)==IFDIR && !suser())
		goto out;

For many things, yes. Not in this particular case.


More information about the TUHS mailing list