nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Ssh account locking

This is a discussion on Ssh account locking within the Linux software forums, part of the Linux Getting Started category; What command i need to run to lock ssh account so that user will not able to log using ssh; ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 01-10-2006, 08:01 PM
Guest
 
Posts: n/a
Default Ssh account locking

What command i need to run to lock ssh account so that user will not able to log using ssh; if possible i need name of log file when user try to login again

thanks in aadvance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-11-2006, 12:28 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

By default sshd use /etc/paswd based username via PAM; so locking this account with passwd command itself:

Code:
passwd -l username
To unlock user use
Code:
passwd -u username
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
root account is disabled rohithananda CentOS / RHEL / Fedora 2 06-25-2008 07:14 PM
Linux NFS file locking soft or hard method vaibhav.kanchan Getting started tutorials 2 05-13-2008 06:00 PM
Locking account on redhat using /etc/passwd sweta Linux software 2 08-03-2007 09:59 PM
ftp account with @ zafar466 Getting started tutorials 1 05-14-2007 06:55 PM
How to forward an email to other account tom Getting started tutorials 2 09-25-2005 09:58 PM


All times are GMT +5.5. The time now is 02:38 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36