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 [EMAIL PROTECTED] Tandem Computers Inc.
512-432-8944 Network Verification 14231 Tandem Blvd.
Auto answer(4 rings) Austin, TX 78726
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message