From owner-freebsd-questions@FreeBSD.ORG Thu Feb 11 07:07:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A79E10656C0 for ; Thu, 11 Feb 2010 07:07:51 +0000 (UTC) (envelope-from bogdan@pgn.ro) Received: from mail-bw0-f211.google.com (mail-bw0-f211.google.com [209.85.218.211]) by mx1.freebsd.org (Postfix) with ESMTP id A7F3C8FC26 for ; Thu, 11 Feb 2010 07:07:50 +0000 (UTC) Received: by bwz3 with SMTP id 3so737575bwz.13 for ; Wed, 10 Feb 2010 23:07:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.7.139 with SMTP id d11mr895382bkd.162.1265872069445; Wed, 10 Feb 2010 23:07:49 -0800 (PST) In-Reply-To: <387428344-1265866387-cardhu_decombobulator_blackberry.rim.net-794243854-@bda049.bisx.prodap.on.blackberry> References: <387428344-1265866387-cardhu_decombobulator_blackberry.rim.net-794243854-@bda049.bisx.prodap.on.blackberry> Date: Thu, 11 Feb 2010 09:07:49 +0200 Message-ID: From: Bogdan Webb To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: HELP! Is that possible "creating a user named root but acturallynot the administrator root" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 07:07:51 -0000 Edit the /etc/master.passwd and /etc/passwd records to change the uid and gid of the "root" account BUT FIRST MAKE SURE YOU ADD (or changed password of) ANOTHER UID0 ACCOUNT here's an example: etc/master.passwd: root:*PASSWORD HASH*:99:99::0:0:Charlie &:/root:/bin/csh and /etc/passwd root:*:99:99:Charlie &:/root:/bin/csh check the "toor" account it's already created by freebsd but it doesn't have a password, 1st apply a password for that account, triple check that it's usable then edit the records (keep in mind that the 99 uid and 99gid in my examples are fake try giving your's the uid and gid of the "nobody" account, or someother) cheers! 2010/2/11 Anthony M. Rasat > Lin Taosheng wrote: > > >Is that possible to implementated? > > No. I think not. But I have not tried it either. > > Can I ask what do you want to achieve? Because I had the same thought once, > concerning how to combat once-increasing script-driven SSH brute-force > attack. But I was instead have a better solution using fail2ban to easily > thwart those SSH brute force attack. Is that your situation? > > Regards, > > Anthony M. Rasat > Manager - Technical, Network and Support Division > PT. Jawa Pos National Network > Graha Pena Jawa Pos Group Building, 5th floor > Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210 > Indonesia.- > Phone 02132185562 > Phone 081574217035 > Fax 02153651465 > Web http://www.jpnn.com > _______________________________________________ > 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" >