From owner-freebsd-security Tue Nov 21 9:51:46 2000 Delivered-To: freebsd-security@freebsd.org Received: from txemail.bankofamerica.com (txemail.bankofamerica.com [171.161.160.14]) by hub.freebsd.org (Postfix) with ESMTP id B412737B4CF for ; Tue, 21 Nov 2000 09:51:42 -0800 (PST) Received: from tximail.bankofamerica.com (tximail.bankofamerica.com [171.182.168.13]) by txemail.bankofamerica.com (8.11.1/8.11.1) with ESMTP id eALHpeh03446 for ; Tue, 21 Nov 2000 11:51:41 -0600 (CST) Received: from smtpsw01 (smtpsw01.tx.nbsi.com [159.185.89.135]) by tximail.bankofamerica.com (8.11.1/8.11.1) with ESMTP id eALHpeE27487 for ; Tue, 21 Nov 2000 11:51:40 -0600 (CST) Date: Tue, 21 Nov 2000 11:50:19 -0600 From: mike.sellenschuetter@bankofamerica.com Subject: rmuser To: freebsd-security@FreeBSD.ORG Message-id: <8625699E.0061FCDC.00@dalnsd40.bankofamerica.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Content-transfer-encoding: 7BIT X-Lotus-FromDomain: BANKOFAMERICA Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I apologize if this is not the right mailing list for this question. We are running a small system which contains around 50 servers and workstations running FreeBSD 2.2.6 (we are upgrading to 4.1 after the Christmas holidays), and we have discovered that rmuser is not removing a user's at jobs. After removing a user with rmuser, atq still shows the job in the queue, but with "???" as the owner. I looked at the rmuser Perl script, and below is the "remove_at_jobs" subroutine from this script. sub remove_at_jobs { local($login_name, $uid) = @_; local($i, $owner, $found); $found = 0; opendir(ATDIR, $atjob_dir) || return; while ($i = readdir(ATDIR)) { next if $i eq '.'; next if $i eq '..'; next if $i eq '.lockfile'; $owner = (stat("$atjob_dir/$i"))[4]; # UID if ($uid == $owner) { if (!$found) { print STDERR "Removing user's at jobs:"; $found = 1; } # Use atrm to remove the job print STDERR " $i"; system('/usr/bin/atrm', $i); } } closedir(ATDIR); if ($found) { print STDERR " done.\n"; } } The problem appears to be with the "system('/usr/bin/atrm', $i);" command. $i is a filename, and the atrm command wants a job number, not a file name. Does anyone know if this problem is fixed in 4.1? Thank You Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message