From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 13:15:37 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C598416A4D9 for ; Thu, 29 Jul 2004 13:15:37 +0000 (GMT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 061B543D5D for ; Thu, 29 Jul 2004 13:15:36 +0000 (GMT) (envelope-from richard.williamson@u4eatech.com) Received: by mail.u4eatech.com (Postfix, from userid 503) id 68237360058; Thu, 29 Jul 2004 14:15:34 +0100 (BST) Received: from apus.u4eatech.com (apus.degree2.com [172.30.40.129]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.u4eatech.com (Postfix) with ESMTP id 9FD0F360030 for ; Thu, 29 Jul 2004 14:15:30 +0100 (BST) Message-Id: <6.1.1.1.2.20040729135112.0af53cd8@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.1.1 Date: Thu, 29 Jul 2004 14:13:19 +0100 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" In-Reply-To: <20040729124017.GA64449@yagonna.de> References: <1091095356019219@lycos-europe.com> <20040729124017.GA64449@yagonna.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 Subject: Re: password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 13:15:38 -0000 To log in as root, >John Rackham wrote: >> hello ive got a problem login to freebsd. i had a copy of freebsd >> given me and when i installed it it asks me for >> a login name and password. is there a way of findin out the login >> name and password? User: root Password: [leave blank] Assuming you had the installation media and went through sysinstall et al, then you should be able to use the name/password that you entered during that process. The commands that Sven give below will tell you what the user name was, but if you can't remember what the password was, you'll need to change it to a new one. Once in, it is recommended you change the root password from [nothing] to [something], if [nothing] is still the root password: # passwd Changing local password for root. New password: [something] Retype the password: [something] passwd: updating the database... passwd: done # If you ever need to change the root password again, you'll need to log in using single user mode. The handbook will explain how to do that. If you've logged in as a user, then passwd works to change that user's local password. If you're logged in as root, you can change the password of a user using 'passwd -l [username]' http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html and '# man passwd' can help out here. HTH, rip At 13:40 29/07/2004. Sven Pfeifer had this to say: >Hi, > >John Rackham wrote: >> hello ive got a problem login to freebsd. i had a copy of freebsd >> given me and when i installed it it asks me for >> a login name and password. is there a way of findin out the login >> name and password? > >yes of course. yust log in as root (this is the system administrator) >and type: > > cat /etc/master.passwd | cut -d ":" -f 1 > >if you can see the username, that matches your userid, set a new >password for this username by typing: > > passwd the_username_you_found_out > >HTH > > > Sven > >-- >Why You Can't Find Your System Administrator: > They are hiding under the stairs --[Simon Burr simes@tcp.co.uk] >------------------------------------------------------[rand. sig. #24] >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"