LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Restricting login access

[ILUG] Restricting login access

Martin Donlon akawaka at csn.ul.ie
Tue Feb 27 09:27:36 GMT 2001


You have to add this line to /etc/pam.d/ssh:
account     required        pam_access.so

Or to whatever service you wish to restrict

On Tue, Feb 27, 2001 at 01:05:33AM +0000, John O Sullivan wrote:
> You might need to restart sshd, or kill -HUP (pid of sshd process)
> 
> johno
> 
> On Mon, 26 Feb 2001 23:45:05 Patrick Brady wrote:
> > Hello ILUG,
> > On my linux box I wish to restrict the hosts from which I can logon.
> > So I edited 
> > /etc/login.access and added the following line:
> > -:pbrady:ALL EXCEPT LOCAL 134.226. 127.0.0.
> > I then opened a ssh session from a host not in the above IP ranges
> > and connected to the 
> > linux box without any problems.. much to my disappointment. Anyone
> > have any ideas as to 
> > why the /etc/login.access file is being ignored?
> > Thanks,
> > Patrick
> 
> 
> -- 
> First they ignore you, then they laugh at you, then they fight you,
> then
> you win. -- Gandhi
> 
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie

-- 
Martin
--
Bother! said Pooh, as he hid Piglet's corpse.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell