From owner-freebsd-current Sun Feb 27 16: 1:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from zmamail02.zma.compaq.com (mailout.zma.compaq.com [161.114.64.102]) by hub.freebsd.org (Postfix) with ESMTP id DFF3137B51C for ; Sun, 27 Feb 2000 16:01:46 -0800 (PST) (envelope-from bruceb@txn.cpqcorp.net) Received: by zmamail02.zma.compaq.com (Postfix, from userid 12345) id D5ABD4AF; Sun, 27 Feb 2000 19:01:45 -0500 (EST) Received: from fedex-s1.txn.cpqcorp.net (fedex-s1.txn.cpqcorp.net [16.74.4.108]) by zmamail02.zma.compaq.com (Postfix) with ESMTP id 920794AB for ; Sun, 27 Feb 2000 19:01:45 -0500 (EST) From: Bruce Burden Posted-Date: Sun, 27 Feb 2000 18:02:14 -0600 (CST) Received: (from bruceb@localhost) by panther.txn.cpqcorp.net (8.9.3/8.9.3) id RAA13919 for freebsd-current@freebsd.org; Sun, 27 Feb 2000 17:56:36 -0600 (CST) Message-Id: <200002272356.RAA13919@panther.txn.cpqcorp.net> Subject: adduser - broken? To: freebsd-current@freebsd.org Date: Sun, 27 Feb 2000 17:56:35 -0600 (CST) Reply-To: bruce.burden@compaq.com X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I did a CVSUP around midnight, CST, Feb 26, so I have some recent code. Anyway, I was playing with the adduser utility. Here is the script: Check /etc/shells Check /etc/master.passwd Check /etc/group Enter your default shell: bash csh date no sh [bash]: Your default shell is: bash -> /usr/local/bin/bash Enter your default HOME partition: [/home]: Copy dotfiles from: /root /usr/share/skel no [/root]: Send message from file: /etc/adduser.message no [no]: Do not send message Use passwords (y/n) [y]: Ok, let's go. Don't worry about mistakes. I will give you the chance later to correct any input. Enter username [a-z0-9_-]: bruce Enter full name []: Me Enter shell bash csh date no sh [bash]: Enter home directory (full path) [/home/bruce]: Uid [1000]: Enter login class: default []: root Login group bruce [bruce]: wheel Login group is ``wheel''. Invite bruce into other groups: guest no [no]: Enter password []: Enter password again []: Name: bruce Password: **** Fullname: Me Uid: 1000 Gid: 0 (wheel) Class: root Groups: wheel HOME: /home/bruce Shell: /usr/local/bin/bash OK? (y/n) [y]: Added user ``bruce'' Copy files from /root to /home/bruce Add another user? (y/n) [y]: n Goodbye! Now, the problem is that the copying of files from /root to /home/bruce went off the deep end. Several minutes (real time) and 20 seconds of CPU time were expended, and all I got was: bash-2.03# ls -l /home/bruce total 2 drwxr-xr-x 3 bruce wheel 512 Feb 27 17:39 .netscape drwxr-xr-x 2 bruce wheel 512 Feb 27 17:39 sup bash-2.03# cd .netscape bash-2.03# ls -l total 1491 drwx------ 2 root wheel 512 Sep 6 19:01 archive -rw------- 1 root wheel 46019 Feb 27 17:10 bookmarks.html drwx------ 34 root wheel 512 Sep 25 18:27 cache -rw------- 1 root wheel 180224 Nov 21 22:51 cert7.db -rwxr-xr-x 1 root wheel 0 Oct 17 12:37 custom.dic -rw------- 1 root wheel 1261568 Feb 27 17:10 history.dat -rw------- 1 root wheel 32768 Sep 6 19:01 key3.db -rw-r--r-- 1 root wheel 1700 Feb 27 17:10 liprefs.js -rw-r--r-- 1 root wheel 291 Feb 27 17:08 plugin-list -rw-r--r-- 1 root wheel 291 Feb 27 11:50 plugin-list.BAK -rw-r--r-- 1 root wheel 4139 Feb 27 17:10 preferences.js -rw-r--r-- 1 root wheel 889 Jan 26 18:52 registry -rw------- 1 root wheel 32768 Feb 27 17:08 secmodule.db -rw-r--r-- 1 root wheel 449 Feb 13 23:53 summary2.dat drwxr-xr-x 3 root wheel 512 Sep 6 19:01 xover-cache Was I too impatient? Is there some reason the copy routine would take several minutes (10+) to copy these few files? I would have expected the copy to take a couple of seconds, max. Bruce -- ------------------------------------------------------------------------------- Bruce Burden bruceb@isd.tandem.com Tandem Computers Inc. 512-432-8944 Network Verification 14231 Tandem Blvd. Auto answer(4 rings) Austin, TX 78726 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message