From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ns.pcdesk.net ([65.100.173.137] helo=gwen.pcdesk.net) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1ARk8g-0004Sz-00 for ; Wed, 03 Dec 2003 22:26:50 -0500 Received: (qmail 2341 invoked from network); 4 Dec 2003 03:26:12 -0000 Received: from localhost (HELO pcdesk.net) (127.0.0.1) by gwen.pcdesk.net with AES256-SHA encrypted SMTP; 4 Dec 2003 03:26:12 -0000 X-MessageWall-Score: 0 (pcdesk.net) Received: from [65.100.173.138] (authenticated as jbahm) by pcdesk.net (MessageWall 1.0.8) with SMTP (encrypted with RC4-MD5); 4 Dec 2003 3:26:12 -0000 Message-ID: <001501c3ba16$500fde90$6700a8c0@morgan> From: "Joseph C. Lininger" To: "Speakup is a screen review system for Linux." References: <006701c3b994$2a494890$6901a8c0@ism.can.ibm.com> Date: Wed, 3 Dec 2003 20:25:45 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Shell Accounts X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.3 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 03:26:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, The way I do this is as follows. First, add the following to the end of your /etc/shells file. /bin/nologin This way, your ftp server will consider /bin/nologin a valid shell. Now, create /bin/nologin as follows: #!/usr/bin/tail +2 Sorry, but logins for this account are disabled. It is being used only to provide a service. Now make this executable with this command: chmod 755 /bin/nologin Finally, set the shell of the account you want to block logins for to /bin/nologin. There are other ways to do this, but I like this one because it provides an explanatory message to those trying to log in. Anyone attempting to login to the account will receive the following message: Sorry, but logins for this account are disabled. It is being used only to provide a service. Once the message is printed, the connection will be promptly terminated. - --- Joseph C. Lininger jbahm@pcdesk.net - ----- Original Message ----- From: "Rejean Proulx" To: Sent: Wednesday, December 03, 2003 4:54 AM Subject: Shell Accounts > I have an account that I want to use for ftp only and I don't want > people logging in to. How to I stop them? > > Rejean Proulx > Visit my family at http://interfree.ca > MSN is: rejp@rogers.com > Ham License VA3REJ > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 iQA/AwUBP86pNyenap9Jqj2wEQIJ6wCaAr0XXT4C25od2hMgbTF/ah13+4AAn018 jn+LkFTDM44J5JmfCsjqa9XJ =1NGL -----END PGP SIGNATURE-----