From owner-freebsd-bugs Thu Oct 31 14:10: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB74637B401 for ; Thu, 31 Oct 2002 14:10:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D0FE43E91 for ; Thu, 31 Oct 2002 14:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9VMA1x3026351 for ; Thu, 31 Oct 2002 14:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9VMA1bx026350; Thu, 31 Oct 2002 14:10:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D814237B401 for ; Thu, 31 Oct 2002 14:09:02 -0800 (PST) Received: from rhadamanth.submonkey.net (pc1-cdif2-4-cust210.cdf.cable.ntl.com [80.4.10.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 605E343E6E for ; Thu, 31 Oct 2002 14:09:01 -0800 (PST) (envelope-from setantae@submonkey.net) Received: from setantae by rhadamanth.submonkey.net with local (Exim 4.10) id 187NUp-0003id-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 31 Oct 2002 22:08:59 +0000 Message-Id: Date: Thu, 31 Oct 2002 22:08:59 +0000 From: Ceri Davies Reply-To: Ceri Davies To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/44797: edquota -p only changes first username or first uid given Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44797 >Category: bin >Synopsis: edquota -p only changes first username or first uid given >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 31 14:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Ceri Davies >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD shaft.techsupport.co.uk 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Oct 25 10:56:23 BST 2002 setantae@shaft.techsupport.co.uk:/usr/obj/usr/src/sys/SHAFT i386 >Description: From edquota(8): edquota [-u] [-f fspath] [-p proto-username] username ... This in fact only works for the first "username" given. >How-To-Repeat: {root@shaft}-{~} # pw useradd quota100 {root@shaft}-{~} # pw useradd quota101 {root@shaft}-{~} # pw useradd quota102 {root@shaft}-{~} # edquota -u -e /dev/ad0s1g:1024:2048 quota100 {root@shaft}-{~} # quota -v quota100 Disk quotas for user quota100 (uid 1026): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # edquota -p quota100 quota101 quota102 {root@shaft}-{~} # quota -v quota100 Disk quotas for user quota100 (uid 1026): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # quota -v quota101 Disk quotas for user quota101 (uid 1027): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # quota -v quota102 Disk quotas for user quota102 (uid 1028): Filesystem usage quota limit grace files quota limit grace /home 0 0 0 0 0 0 {root@shaft}-{~} # This also fails with uid's: {root@shaft}-{~} # pw useradd quota100 -u 2000 {root@shaft}-{~} # pw useradd quota101 -u 2001 {root@shaft}-{~} # pw useradd quota102 -u 2002 {root@shaft}-{~} # edquota -u -e /home:1024:2048 2000 {root@shaft}-{~} # quota -v quota100 Disk quotas for user quota100 (uid 2000): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # edquota -p 2000 2001 2002 {root@shaft}-{~} # quota -v quota101 Disk quotas for user quota101 (uid 2001): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # quota -v quota102 Disk quotas for user quota102 (uid 2002): Filesystem usage quota limit grace files quota limit grace /home 0 0 0 0 0 0 But works when an actual range is specified: {root@shaft}-{~} # edquota -u -e /home:0:0 2001 {root@shaft}-{~} # edquota -p 2000 2001-2002 {root@shaft}-{~} # quota -v quota101 Disk quotas for user quota101 (uid 2001): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 0 0 0 {root@shaft}-{~} # quota -v quota102 Disk quotas for user quota102 (uid 2002): Filesystem usage quota limit grace files quota limit grace /home 0 1024 2048 The manual does state: If the -p option is specified, edquota will duplicate the quotas of the prototypical user specified for each user specified. It seems that the -p option requires a range of uid's, and does not work when either a list of usernames or a list of uid's is presented. >Fix: This may just be a documentation bug. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message