[6329] in Athena Bugs

home help back first fref pref prev next nref lref last post

detach -clean

daemon@ATHENA.MIT.EDU (John Carr)
Sun Nov 4 17:46:42 1990

To: bugs@ATHENA.MIT.EDU
Date: Sun, 04 Nov 90 17:46:30 EST
From: John Carr <jfc@ATHENA.MIT.EDU>


Currently, detach -clean is a privileged operation.  There seems
little reason for this.  It would be useful on dialups if users could
detach filesystems attached by logged-out users. Users are already
required to be in /etc/passwd to work normally, so this would not hurt
anyone who isn't already losing.

To make this change, change main.c line 760 (+/- a few) from

	case 'C':
		if (trusted_user(real_uid)) {
			clean_detach++;
		} else {
			fprintf(stderr,
		"%s: You are not authorized to use the -clean option\n", progname);
		}
		break;


to

	case 'C':
		clean_detach = 1;
		break;


home help back first fref pref prev next nref lref last post