From owner-freebsd-cluster Wed Feb 27 9:54: 5 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id 817F337B41D; Wed, 27 Feb 2002 09:53:54 -0800 (PST) Received: from fwd06.sul.t-online.de by mailout01.sul.t-online.com with smtp id 16g8H3-0006No-04; Wed, 27 Feb 2002 18:53:53 +0100 Received: from Magelan.Leidinger.net (520065502893-0001@[217.229.211.66]) by fmrl06.sul.t-online.com with esmtp id 16g8Go-24I8h6C; Wed, 27 Feb 2002 18:53:38 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.2/8.12.2) with ESMTP id g1RHs1VR006749; Wed, 27 Feb 2002 18:54:05 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200202271754.g1RHs1VR006749@Magelan.Leidinger.net> Date: Wed, 27 Feb 2002 18:54:01 +0100 (CET) From: Alexander Leidinger Subject: Re: Mass Upgrade and Maintenance questions To: koroush.saraf@lmco.com Cc: freebsd-questions@FreeBSD.ORG, freebsd-cluster@FreeBSD.ORG In-Reply-To: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 27 Feb, Koroush Saraf wrote: > Question 2: > How do I install additional packages to all the computers using the console > computer. For example I like to add say ncftp to all 36 computers. How do > I > do that from the console computer? - Get the package for ncftp (or make one yourself via "make package" (this also installs it on the system you run the command on) in the respective ports dir) and every other package ncftp may depend upon. - Put them on every computer. - Use "pkg_add" to install it. e.g.: for host in $(cat file_with_list_of_newline_seperated_computer_names_in_the_cluster); do rcp *.tgz ${host}: rsh ${host} pkg_add package_name.tgz done > Question 3: > I would like to add user accounts to all these computers, however I noticed > that I cannot simply replicated the /etc/master.passwd file & /etc/group to > all the computers and expect it to work. Actually I prefer to issue the > adduser command on all the computers via remote shell. If you think this is > a good idea, tell me how to do this so that I can automatically fill in the > fields for the 'adduser' prompts. If there is a better and simpler way, I > like to know. You also need to copy /etc/pwd.db (gets generated from passwd) and /etc/spwd.db (gets generated from master.passwd) if you just want to have the passwd files replicated from the console computer. Bye, Alexander. -- Speak softly and carry a cellular phone. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message