From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ferrari Subject: Re: Two Questions. Thanks for all the help so far. Date: Wed, 31 Mar 2004 10:13:15 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <200403311013.16660.fluca1978@virgilio.it> References: <006f01c416ef$47817dc0$020aa8c0@Scott> Reply-To: fluca1978@virgilio.it Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <006f01c416ef$47817dc0$020aa8c0@Scott> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org On Wednesday 31 March 2004 09:10 Scott@Charter's cat walking on the keyboard wrote: > 1) How would you set up a secure passwordless login to a machine? > > Am I on the right track with something like this: user1:x:100:10:Joe > User1:/home/user1:/dev/null ? > You can change /dev/null to /sbin/nologin, see man nologin. > 2) What would you do to find out what services are running on ip 1.2.3.4? > > Would this work? netstat -a | grep 1.2.3.4 It is better to use nmap: nmap -O 1.2.3.4 (better as root). Luca -- Luca Ferrari, fluca1978@virgilio.it